开发者

How to change my wx.toolbar event?

I have a开发者_StackOverflow 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 ?


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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜