Core Function GUIUnload

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

Contents

Description

Unload a GUI window and hide it (GUILoad will bring it back).

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