SG_EventScreenGadgetID | |||
Syntax: | |||
Result=SG_EventScreenGadgetID() | |||
Parameters: | |||
| |||
Return Values: | |||
| |||
Description: | |||
This function check all gadgets for events | |||
Example: | |||
Repeat ; Start of the event loop ExamineMouse() Event = SG_ScreenGadgetEvent() ; This line checks if an event happened GadgetID = SG_EventScreenGadgetID() ; Is it a gadget event? EventType = SG_EventType() ; The event type Debug "----------------" Debug "Event: " + Str(Event) Debug "GadgetID: " + Str(GadgetID) Debug "EventType: " + Str(EventType) If Event = #PB_EventGadget ;You can place code here, and use the result as parameters for the procedures endif Forever | |||
Remarks: | |||
| |||
ExamineMouse() must be called before the SG_EventScreenGadgetID() to make the mouse ccords available
|