Core Function GUICreateGroupBox

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "<pre> GUICreate( "GroupBox", <gui object>, <Left>, <Top>, <Width>, <Height> ) </pre> === Description === Create a GroupBox === Parameters === ==== gui object ==== The GUI ob...")
 
m (1 revision)
 
(2 intermediate revisions by one user not shown)
Line 38: Line 38:
 
<syntaxhighlight lang="sputnik">
 
<syntaxhighlight lang="sputnik">
 
// Create the GUI
 
// Create the GUI
Glob $GUI = GUICreate("Window", "Hello", 550, 350);
+
Global $GUI = GUICreate("Window", "Hello", 550, 350);
 
// Show the GUI
 
// Show the GUI
 
GUILoad( $GUI );
 
GUILoad( $GUI );
 
// Create a GroupBox
 
// Create a GroupBox
Glob $Group = GUICreate("GroupBox", $GUI, "My GroupBox", 8, 8, 300, 300);
+
Global $Group = GUICreate("GroupBox", $GUI, "My GroupBox", 8, 8, 300, 300);
 
// Create a Button inside the GroupBox
 
// Create a Button inside the GroupBox
Glob $Button1 = GUICreate("Button", $Group, "Button1", 30, 30);
+
Global $Button1 = GUICreate("Button", $Group, "Button1", 30, 30);
 
   
 
   
 
// Keep the GUI running as long as long as the window is open
 
// Keep the GUI running as long as long as the window is open

Latest revision as of 12:37, 14 June 2015

GUICreate( "GroupBox", <gui object>, <Left>, <Top>, <Width>, <Height> )

Contents

Description

Create a GroupBox

Parameters

gui object

The GUI object to place the GroupBox on.

text

The text the button should display.

left

LEFT Position to create the object.

top

TOP Position to create the object.

width

Optional; The width of the object.

height

Optional; The height of the object.

Return Value

Success: Returns the new GUI object.

Failure: Returns 0 if error occurs.

Example

// Create the GUI
Global $GUI = GUICreate("Window", "Hello", 550, 350);
// Show the GUI
GUILoad( $GUI );
// Create a GroupBox
Global $Group = GUICreate("GroupBox", $GUI, "My GroupBox", 8, 8, 300, 300);
// Create a Button inside the GroupBox
Global $Button1 = GUICreate("Button", $Group, "Button1", 30, 30);
 
// Keep the GUI running as long as long as the window is open
While ( GUIStatus( $GUI ) ) DoEvents( );
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox