Core Function GUILoad

From Sputnik Wiki
Jump to: navigation, search
GUILoad( <GUI Window> )

Contents

Description

Load a GUI window and display it (Usually after creation or after GUIUnload).

Parameters

GUI Window

The GUI window to use.

Return Value

Success: Returns 1.

Failure: Returns 0.

Example

// Create the GUI
$GUI = GUICreate("Window", "Hello", 200, 200);
// Show the GUI
GUILoad( $GUI );
// Create a button -- This button will simply display a message
$Button = GUICreate("Button", $GUI, "Close", 8, 8);
// Add a link to the button
GUILink($Button, "Click", 'Moo();'); // Call function
// Keep the GUI running as long as long as the window is open
While ( GUIStatus( $GUI ) ) DoEvents( );
 
Function Moo()
{
	GUIUnload($GUI);
}
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox