Core Function DoEvents
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> DoEvents( ) </pre> === Description === Keep GUI window active by dispatching all messages in the queue. Works similar to Visual Basic 6.0's DoEvents(). === Parameters =...") |
|||
Line 18: | Line 18: | ||
Failure: Returns 0 if window/control is not found. | Failure: Returns 0 if window/control is not found. | ||
+ | |||
+ | === Remarks === | ||
+ | |||
+ | Its worth noting the thread that created the GUI objects will need to be the one sending the DoEvents() for its objects. | ||
=== Example === | === Example === |
Revision as of 06:11, 29 November 2011
DoEvents( )
Contents |
Description
Keep GUI window active by dispatching all messages in the queue.
Works similar to Visual Basic 6.0's DoEvents().
Parameters
None
Return Value
Success: Returns 1.
Failure: Returns 0 if window/control is not found.
Remarks
Its worth noting the thread that created the GUI objects will need to be the one sending the DoEvents() for its objects.
Example
Glob $GUI = GUICreate("GUI", 640, 480); GUISetState($GUI, @Show); // Objects $obj_Test = GUICreateButton($GUI, "Test", "Test", 25, 110, 8, 8); // Links GUILink( $obj_button, @lClick, 'println("Clicked");' ); // Main GUI loop Until ( GUIState( $GUI ) == @sClosed ) DoEvents();