A line created using the DrawLine method of wx.DC has the onClick and onMouseOver events?
A line created using the DrawLine method of wx.DC has the onClick and onMouseOver
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.