fixed wxContextHelpButton bitmap (dis)appearance
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
0460407f86
commit
84bfc0d503
@ -157,4 +157,4 @@ plot_zin_bmp BITMAP "wx/msw/plot_zin.bmp"
|
||||
plot_zot_bmp BITMAP "wx/msw/plot_zot.bmp"
|
||||
|
||||
// For wxContextHelpButton
|
||||
csquery_bmp BITMAP "wx/msw/csquery.bmp"
|
||||
csquery BITMAP "wx/msw/csquery.bmp"
|
||||
|
@ -212,18 +212,14 @@ BEGIN_EVENT_TABLE(wxContextHelpButton, wxBitmapButton)
|
||||
EVT_BUTTON(wxID_CONTEXT_HELP, wxContextHelpButton::OnContextHelp)
|
||||
END_EVENT_TABLE()
|
||||
|
||||
wxContextHelpButton::wxContextHelpButton(wxWindow* parent, wxWindowID id,
|
||||
const wxPoint& pos, const wxSize& size,
|
||||
long style):
|
||||
wxBitmapButton(parent, id, wxNullBitmap, pos, size, style)
|
||||
wxContextHelpButton::wxContextHelpButton(wxWindow* parent,
|
||||
wxWindowID id,
|
||||
const wxPoint& pos,
|
||||
const wxSize& size,
|
||||
long style)
|
||||
: wxBitmapButton(parent, id, wxBITMAP(csquery),
|
||||
pos, size, style)
|
||||
{
|
||||
#ifdef __WXMSW__
|
||||
wxBitmap bitmap(wxT("csquery_bmp"), wxBITMAP_TYPE_BMP_RESOURCE);
|
||||
#else
|
||||
wxBitmap bitmap(csquery_xpm);
|
||||
#endif
|
||||
|
||||
SetBitmapLabel(bitmap);
|
||||
}
|
||||
|
||||
void wxContextHelpButton::OnContextHelp(wxCommandEvent& event)
|
||||
|
Loading…
Reference in New Issue
Block a user