Core Function GUIMDIParent

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

Contents

Description

Set the parent window (An MDI window) for another window to be created inside it

Parameters

GUI Window

The window to assign to an MDI parent.

GUI Window

The MDI parent to use.

Return Value

Success: Returns 1.

Failure: Returns 0 if error occurs.

Example

// Create the MDI GUI
$GUI = GUICreate("MDIWindow", "GUI", 800, 600);
// Show the MDI GUI
GUILoad( $GUI );
 
// Create a client window
$TestGUI = GUICreate("Window", "GUI Client 1", 200, 200, 0, 0);
GUIMDIParent($TestGUI, $GUI);
GUILoad( $TestGUI );
 
// Create another client window
$TestGUI2 = GUICreate("Window", "GUI Client 2", 200, 200, 240, 0);
GUIMDIParent($TestGUI2, $GUI);
GUILoad( $TestGUI2 );
 
// Keep the GUI running as long as long as the window is open
While ( GUIStatus( $GUI ) ) DoEvents( );
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox