WindowEvent()
Syntax
Event = WindowEvent()
Description
Check if an event has occured on any of the opened windows. This function returns immediately, so be careful to not stole the whole CPU power with a non temporized loop... To lock the program execution, just use the WaitWindowEvent() command. To get the window number in which the event occurred, you need to use the EventWindowID() function.
Possible Events are :#PB_EventMenu : a menu has been selected #PB_EventGadget : a gadget has been pushed #PB_EventCloseWindow: the window close gadget has been pushed #PB_EventRepaint : the window content has been destroyed and must be repained (useful for 2D graphics operations) #PB_EventMoveWindow : the window has been moved
Supported OS
Windows, AmigaOS, Linux