Difference between revisions of "LavishGUI:InputBox (Command)"
Jump to navigation
Jump to search
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
== Syntax == | == Syntax == | ||
− | {{CMD-DR| | + | {{CMD-DR|InputBox|Intermediate|Intermediate|Intermediate|Intermediate}} |
− | InputBox <text> [default value] | + | InputBox [-template <name>] <text> [default value] |
== Description == | == Description == | ||
Pops up a window displaying the given text, with a text entry box and OK and Cancel buttons. | Pops up a window displaying the given text, with a text entry box and OK and Cancel buttons. | ||
− | The UserInput Top-Level Object will be set to the input text, or NULL if Cancel is clicked. | + | The [[ISSession:UserInput (Top-Level Object)|UserInput]] Top-Level Object will be set to the input text, or NULL if Cancel is clicked. |
+ | |||
+ | To make the InputBox use a custom template specify the name with the -template switch. | ||
== Examples == | == Examples == | ||
* InputBox "What is your name?" | * InputBox "What is your name?" | ||
* InputBox "What year were you born?" "19" | * InputBox "What year were you born?" "19" | ||
+ | * InputBox -template myinputbox "Am I being nosey?" "yes" | ||
== See Also == | == See Also == | ||
+ | *[[ISSession:UserInput (Top-Level Object)|UserInput]] | ||
+ | *[[ISSession:MessageBox (Command)|MessageBox]] | ||
+ | *[[LavishGUI]] | ||
*[[LavishScript:Commands|LavishScript Commands]] | *[[LavishScript:Commands|LavishScript Commands]] | ||
*[[IS:Session#Commands|Inner Space Session Commands]] | *[[IS:Session#Commands|Inner Space Session Commands]] | ||
− | + | [[Category:LavishGUI]] | |
− | [[Category: | ||
− | |||
− |
Latest revision as of 07:05, 3 September 2006
Contents
Syntax
InputBox | |
Usage | Intermediate |
Level of Understanding | Intermediate |
Computer Savvy | Intermediate |
Logic | Intermediate |
InputBox [-template <name>] <text> [default value]
Description
Pops up a window displaying the given text, with a text entry box and OK and Cancel buttons.
The UserInput Top-Level Object will be set to the input text, or NULL if Cancel is clicked.
To make the InputBox use a custom template specify the name with the -template switch.
Examples
- InputBox "What is your name?"
- InputBox "What year were you born?" "19"
- InputBox -template myinputbox "Am I being nosey?" "yes"