EventType()

Syntax

Event = EventType()

Description

After a WindowEvent() or WaitWindowEvent() command, use this function to determine of which type the event is. EventType() is now very linked to the Gadget and Systray libraries and can returns the following values when an event occurs:
  #PB_EventType_LeftClick       : Left mouse button click 
  #PB_EventType_RightClick      : right mouse button click 
  #PB_EventType_LeftDoubleClick : Left mouse button double click 
  #PB_EventType_RightDoubleClick: Right mouse button double click 
  #PB_EventType_Focus           : returned when a StringGadget() get the focus. 
  #PB_EventType_LostFocus       : returned when a StringGadget() loose the focus. 
  #PB_EventType_Change          : returned when a StringGadget() content change. 

Supported OS

Windows, AmigaOS, Linux

Window - Index