if (!button->m_hasVMT) return;
if (g_blockEventsOnDrag) return;
- wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, button->GetId());
+ wxCommandEvent event(wxEVT_BUTTON, button->GetId());
event.SetEventObject(button);
button->HandleWindowEvent(event);
}
// wxBitmapButton
//-----------------------------------------------------------------------------
-IMPLEMENT_DYNAMIC_CLASS(wxBitmapButton,wxButton)
-
void wxBitmapButton::Init()
{
m_hasFocus =
if (!the_one.IsOk())
{
- the_one = GetBitmapLabel();
- if (!the_one.IsOk())
- return;
+ the_one = GetBitmapLabel();
+ if (!the_one.IsOk())
+ return;
}
GdkBitmap *mask = NULL;