Hello,
I don't have any code for this, but some ideas.
I see that every IGUIElement in C++ implementation is IEventReceiver,
which means all elements should have overridable OnEvent(), where
you could check if user clikced withing area of the control.
But unfortunately .NET implementation is poor and lacks this.
Another option would be to GetElementFromPoint on the root element,
something like:
Code: Select all
Position2D pos = new Position2D(x,y);
device.GUIEnvironment.RootGUIElement.GetElementFromPoint(pos);
But you have to check if that element is visible or not covered by another
child element.