I have a wx.toolbar with a few buttons. A button is left to pan! I want to click on the button and by the time I press it, the pan is left.
For now I have only seen that wx.EVT_TOOL works only when the mouse is released.
Is there any way to intend?
In the toolbar button's event, you should be able to get the position of the mouse by Wx.GetMouseState.
Alternatively, you can create your own toolbar with a panel and some wx.Buttons (or other button widgets).
Comments
Post a Comment