Core Function GUIMDICreate
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> GUICreate( "MDIWindow", <Text>, <Left>, <Top>, <Width>, <Height> ) </pre> === Description === Create a GUI Multi-Document-Interface window === Parameters === ==== text ...") |
m (1 revision) |
||
(3 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
<pre> | <pre> | ||
− | GUICreate( "MDIWindow", <Text>, < | + | GUICreate( "MDIWindow", <Text>, <Width>, <Height>, <Left>, <Top>, <Style> ) |
</pre> | </pre> | ||
Line 11: | Line 11: | ||
==== text ==== | ==== text ==== | ||
The text (ie Title) the window should display. | The text (ie Title) the window should display. | ||
+ | |||
+ | ==== width ==== | ||
+ | The width of the object. | ||
+ | |||
+ | ==== height ==== | ||
+ | The height of the object. | ||
==== left ==== | ==== left ==== | ||
− | LEFT Position to create the object. | + | Optional; LEFT Position to create the object. |
+ | |||
+ | (-1 means center of screen) | ||
==== top ==== | ==== top ==== | ||
− | TOP Position to create the object. | + | Optional; TOP Position to create the object. |
− | ==== | + | (-1 means center of screen) |
− | Optional; The | + | ==== style ==== |
− | + | Optional; The style of the window frame. | |
− | ==== | + | <pre> |
− | + | 0 = None | |
+ | 1 = Fixed Single | ||
+ | 2 = Fixed 3D | ||
+ | 3 = Fixed Dialog | ||
+ | 4 = Sizable (Default) | ||
+ | 5 = FixedToolWindow | ||
+ | </pre> | ||
=== Return Value === | === Return Value === |
Latest revision as of 12:37, 14 June 2015
GUICreate( "MDIWindow", <Text>, <Width>, <Height>, <Left>, <Top>, <Style> )
Contents |
Description
Create a GUI Multi-Document-Interface window
Parameters
text
The text (ie Title) the window should display.
width
The width of the object.
height
The height of the object.
left
Optional; LEFT Position to create the object.
(-1 means center of screen)
top
Optional; TOP Position to create the object.
(-1 means center of screen)
style
Optional; The style of the window frame.
0 = None 1 = Fixed Single 2 = Fixed 3D 3 = Fixed Dialog 4 = Sizable (Default) 5 = FixedToolWindow
Return Value
Success: Returns the new GUI object.
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( );