So, for example I draw some objects on wx.PaintDC, such as lines and rectangles.
Now I want next: on mouse click I wont know which object was clicked.
Of course, I can see what object is the closest, but what about more exact answer?
Maybe even not standart wx.DC, but such things as FloatCanvas or something like this.
So, what's the best solution?
Does calling event.GetEventObject() in your event handler give you the object you need?
What is the best solution to bind objects in wx.DC?