EventGadget()

Syntax

GadgetNumber = EventGadget()
Description
After an event of type #PB_Event_Gadget (returned by WindowEvent() or WaitWindowEvent()), use this function to determine which gadget has been triggered.

Parameters

None.

Return value

Returns the #Gadget number associated to the event.

See Also

WindowEvent(), WaitWindowEvent()

Supported OS

All

<- EventData() - Window Index - EventMenu() ->