Difference between revisions of "LavishGUI:MessageBox (Command)"

From Lavish Software Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by 2 users not shown)
Line 7: Line 7:
  
 
When used in a script, sets the [[ISSession:UserInput (Top-Level Object)|UserInput]] Top-Level Object to the user response -- "OK", "Cancel", "Yes", or "No" (can also be NULL if the message box is destroyed).
 
When used in a script, sets the [[ISSession:UserInput (Top-Level Object)|UserInput]] Top-Level Object to the user response -- "OK", "Cancel", "Yes", or "No" (can also be NULL if the message box is destroyed).
 +
 +
To make the messagebox use a custom template specify the name with the -template switch.
  
 
== Examples ==
 
== Examples ==
Line 18: Line 20:
 
*[[ISSession:UserInput (Top-Level Object)|UserInput]]
 
*[[ISSession:UserInput (Top-Level Object)|UserInput]]
 
*[[ISSession:InputBox (Command)|InputBox]]
 
*[[ISSession:InputBox (Command)|InputBox]]
 +
*[[LavishGUI]]
 
*[[LavishScript:Commands|LavishScript Commands]]
 
*[[LavishScript:Commands|LavishScript Commands]]
 
*[[IS:Session#Commands|Inner Space Session Commands]]
 
*[[IS:Session#Commands|Inner Space Session Commands]]
  
{{Command-Stub}}
+
 
[[Category:Inner Space]]
+
[[Category:LavishGUI]]
[[Category:Inner Space Session]]
 
[[Category:Inner Space Session Commands]]
 

Latest revision as of 07:05, 3 September 2006

Syntax

Command Difficulty Rating
UI
Usage Intermediate
Level of Understanding Intermediate
Computer Savvy Intermediate
Logic Intermediate

MessageBox [-template <name>] [-ok|-okcancel|-yesno] <text>

Description

Pops up a message box with the indicated buttons (OK by default), displaying the given text.

When used in a script, sets the UserInput Top-Level Object to the user response -- "OK", "Cancel", "Yes", or "No" (can also be NULL if the message box is destroyed).

To make the messagebox use a custom template specify the name with the -template switch.

Examples

  • MessageBox "We're not going to make it, captain"
  • MessageBox -ok "We're not going to make it, captain"
  • MessageBox -yesno "Lower the sail?"
  • MessageBox -okcancel "We're going to lower the sail"
  • MessageBox -template mymessagebox -yesno "Eject the reactor core?"

See Also