Core Function GUICreateTextBox
From Sputnik Wiki
(Difference between revisions)
UberFoX (Talk | contribs)
(Created page with "<pre> GUICreate( "TextBox", <gui object>, <Text>, <Left>, <Top>, <Width>, <Height> ) </pre> === Description === Create a TextBox === Parameters === ==== gui object ==== The ...")
Newer edit →
(Created page with "<pre> GUICreate( "TextBox", <gui object>, <Text>, <Left>, <Top>, <Width>, <Height> ) </pre> === Description === Create a TextBox === Parameters === ==== gui object ==== The ...")
Newer edit →
Revision as of 18:06, 25 April 2012
GUICreate( "TextBox", <gui object>, <Text>, <Left>, <Top>, <Width>, <Height> )
Contents |
Description
Create a TextBox
Parameters
gui object
The GUI object to place the TextBox 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 Glob $GUI = GUICreate("Window", "Hello", 550, 350); // Show the GUI GUILoad( $GUI ); // Create a TextBox Glob $Obj = GUICreate("TextBox", $GUI, "My TextBox", 8, 8, 300); // Create a link GUILink($Obj, "TextChanged", 'onChange( $me );'); // Keep the GUI running as long as long as the window is open While ( GUIStatus( $GUI ) ) DoEvents( ); Function onChange( $obj ) { my $Text = GUIGetProp($obj, "Text"); println("Text: $Text"); }