SG_ScreenGadgetEvent

Syntax:

Result=SG_ScreenGadgetEvent()

Parameters:


Return Values:

Result

=

the EventID of the current event, or 0


Description:

if an event happened it returns the EventID


Example:

    Repeat ; Start of the event loop
      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:

Because there are only gadgets supported currently, the only ID returned is #PB_EventGadget.



Supported OS:   Windows