开发者

Does wx.DC line has events?

开发者 https://www.devze.com 2022-12-26 00:28 出处:网络
A line created using the DrawLine method of wx.DC has the onClick and onMouseOver events开发者_开发知识库?No wx.DC just draw to a device and those are all plain pixels, wx.DC doesn\'t track mouse even

A line created using the DrawLine method of wx.DC has the onClick and onMouseOver events开发者_开发知识库?


No wx.DC just draw to a device and those are all plain pixels, wx.DC doesn't track mouse events or any other events.

If you want such behavior you will have to track mouse movement on your drawing area and on click check which area it may have clicked e.g. if near by the line show a msg etc.

0

精彩评论

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