// ----------------------------------------------------------------------------
/*
- * General wxWindows events, covering
+ * General wxWidgets events, covering
* all interesting things that might happen (button clicking, resizing,
* setting text in widgets, etc.).
*
case wxMOUSE_BTN_RIGHT:
return RightDClick();
}
-
- return false;
}
// return true if was a button down event
case wxMOUSE_BTN_RIGHT:
return RightDown();
}
-
- return false;
}
// return true if was a button up event
case wxMOUSE_BTN_RIGHT:
return RightUp();
}
-
- return false;
}
// return true if the given button is currently changing state
case wxMOUSE_BTN_RIGHT:
return RightDown() || RightUp() || RightDClick();
}
-
- return false;
}
bool wxMouseEvent::ButtonIsDown(int but) const
case wxMOUSE_BTN_RIGHT:
return RightIsDown();
}
-
- return false;
}
int wxMouseEvent::GetButton() const
void wxEvtHandler::ProcessPendingEvents()
{
+ // this method is only called by wxApp if this handler does have pending
+ // events
+ wxCHECK_RET( m_pendingEvents,
+ wxT("Please call wxApp::ProcessPendingEvents() instead") );
+
#if defined(__VISAGECPP__)
wxENTER_CRIT_SECT( m_eventsLocker);
#else
wxDynamicEventTableEntry *entry = (wxDynamicEventTableEntry*)node->GetData();
#endif // WXWIN_COMPATIBILITY_EVENT_TYPES/!WXWIN_COMPATIBILITY_EVENT_TYPES
- if ((event.m_eventType == entry->m_eventType) && entry->m_fn)
+ if ((event.m_eventType == entry->m_eventType) && (entry->m_fn != 0))
{
wxEvtHandler *handler =
#if !WXWIN_COMPATIBILITY_EVENT_TYPES