开发者

How to change my wx.toolbar event?

开发者 https://www.devze.com 2023-01-17 08:21 出处:网络
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.

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

精彩评论

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