wxCoord m_maxWidth,
m_maxHeight;
- // the current tool or NULL
+ // the tool over which the mouse currently is or NULL
wxToolBarToolBase *m_toolCurrent;
- // the currently pressed tool or NULL
- wxToolBarToolBase *m_toolPressed;
+ // the tool which currently has the mouse capture (i.e. the one user is
+ // pressing) or NULL
+ wxToolBarTool *m_toolPressed;
DECLARE_DYNAMIC_CLASS(wxToolBar)
};
virtual bool HandleKey(wxInputConsumer *consumer,
const wxKeyEvent& event,
bool pressed);
+ virtual bool HandleMouse(wxInputConsumer *consumer,
+ const wxMouseEvent& event);
virtual bool HandleMouseMove(wxInputConsumer *consumer, const wxMouseEvent& event);
virtual bool HandleFocus(wxInputConsumer *consumer, const wxFocusEvent& event);
virtual bool HandleActivation(wxInputConsumer *consumer, bool activated);