Example: Events of overlapping graphic elements trigger individually

A graphic element may lie partially over another graphic element on the screen. Each graphic element can have its own event. Touching a graphic element triggers the event of that graphic element. This is true even when touching the portion of a graphic element that is on top of the other.
In this example, there is a unique event associated with each button. Part of Button B lies on top of Button A.
ViewDesEventExample1
Press Event
Triggered action
1
Press here to trigger the event associated with Button A.
2
Press here to trigger the event associated with Button B.
3
Press here to trigger the event associated with Button B.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal