Not really..
Select app\event
Case EVENT_GADGET
Select app\GadgetEvent
Case btn001
ESC = 1
End Select
End Select
You need to test the event objects.
App\Event
And in the case of a Gadget, App\GadgetEvent, if the handle is recorded, then the gadget had an event. In the case of a button, a click.