wxStaticBitmap click coordinates

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
voyage
In need of some credit
In need of some credit
Posts: 8
Joined: Fri Aug 31, 2018 1:58 pm

wxStaticBitmap click coordinates

Post by voyage » Fri Aug 31, 2018 2:33 pm

Is there a way to get the coordinates of a click inside a wxStaticBitmap?

catalin
Moderator
Moderator
Posts: 1576
Joined: Wed Nov 12, 2008 7:23 am
Location: Romania

Re: wxStaticBitmap click coordinates

Post by catalin » Fri Aug 31, 2018 3:03 pm

Sure, the same way you'd get them for many other widgets. You might find some inspiration in "dragimage" sample that comes with wxW.

Post Reply