aF.
aF.

Reputation: 66717

How to change my wx.toolbar event?

I have a wx.toolbar with some buttons. One of the buttons makes pan left! I want to click on the button and while I keep it pressed, the pan left is made.

For now I only saw that the wx.EVT_TOOL only works when mouse left is up.

Is there a way to do what I intend ?

Upvotes: 0

Views: 326

Answers (1)

Mike Driscoll
Mike Driscoll

Reputation: 33101

In the toolbar button's event, you should be able to get the state of the mouse via wx.GetMouseState.

Alternatively, you can make your own toolbar with a panel and some wx.Buttons (or other button widgets).

Upvotes: 1

Related Questions