miliexperts.blogg.se

Purebasic mouse location without openwindowedscreen
Purebasic mouse location without openwindowedscreen





purebasic mouse location without openwindowedscreen

#PB_Event_DeactivateWindow: the window has been deactivated (lost the focus) #PB_Event_ActivateWindow : the window has been activated (got the focus) #PB_Event_RestoreWindow : the window has been restored to normal size (either from a minimum or maximum size) #PB_Event_MaximizeWindow : the window has been maximized #PB_Event_MinimizeWindow : the window has been minimized #PB_Event_MoveWindow : the window has been moved #PB_Event_SizeWindow : the window has been resized #PB_Event_Repaint : the window content has been destroyed and must be repainted (useful for 2D graphics operations)

purebasic mouse location without openwindowedscreen

#PB_Event_CloseWindow : the window close gadget has been pushed #PB_Event_Timer : a timer has reached its timeout #PB_Event_SysTray : an icon in the systray zone was clicked #PB_Event_Gadget : a gadget has been pushed #PB_Event_Menu : a menu has been selected To get the window number in which the event occurred, use the EventWindow() function. In this case, either Delay() shouldīe used somewhere in the loop or WaitWindowEvent() with a small timeout value. WaitWindowEvent(), it will not give CPU time to other programs while waitingįor an event and therefore consume all CPU power. It must be handled with care though if used on a continuing basis, because unlike This makes it useful for window event loops, where other processing needs to be done without waitingįor an event to happen (e.g. Unlike WaitWindowEvent() it doesn't wait for the next event - it always returns immediately. The next event from the event queue and or zero if there are no more events. Checks if an event has occurred on any of the opened windows.







Purebasic mouse location without openwindowedscreen