Core Function GUICreateLabel
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> GUICreate( "Label", <gui object>, <Text>, <Left>, <Top>, <Width>, <Height> ) </pre> === Description === Create a Label === Parameters === ==== gui object ==== The GUI ...") |
(→Example) |
||
Line 42: | Line 42: | ||
<syntaxhighlight lang="sputnik"> | <syntaxhighlight lang="sputnik"> | ||
// Create the GUI | // Create the GUI | ||
− | + | Global $GUI = GUICreate("Window", "Hello", 550, 350); | |
// Show the GUI | // Show the GUI | ||
GUILoad( $GUI ); | GUILoad( $GUI ); |
Revision as of 00:09, 18 January 2013
GUICreate( "Label", <gui object>, <Text>, <Left>, <Top>, <Width>, <Height> )
Contents |
Description
Create a Label
Parameters
gui object
The GUI object to place the Label 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.
Remarks
None.
Example
// Create the GUI Global $GUI = GUICreate("Window", "Hello", 550, 350); // Show the GUI GUILoad( $GUI ); // Create a Label Glob $Lbl = GUICreate("Label", $GUI, "My Label", 8, 8); // Keep the GUI running as long as long as the window is open While ( GUIStatus( $GUI ) ) DoEvents( );