Experimental:Palette:popDialog
Jump to navigation
Jump to search
Summary[edit]
The popDialog custom Component builds on Container COMP to make an easy-to-use pop-up dialog for basic notifications and queries. The dialog can be set up using parameters or script.
Up to four buttons can be created, as well as a text-entry box. A callback system is provided for more complex needs.
TIP: there is a system popDialog available in op.TDResources
, so for many needs a call to op.TDResources.PopDialog.OpenDefault(...)
is all that is needed to create a dialog.
For examples of how to set up a popDialog, see PopDialog Custom COMP Examples.
Parameters - Pop Dialog Page
Help Page
Helppage
- Open the popDialog wiki page in a browser.
Open
Open
- Open the pop-up dialog.
Close
Close
- Close the pop-up dialog.
Title
Title
- The dialog's title. If empty, no title bar will be displayed.
Text
Text
- The dialog's text.
Text Entry Area
Textentryarea
- If true, an area for the user to provide text entry will be displayed.
Text Entry Default
Textentrydefault
- The text entry area will start with this text in it.
Text Entry Type
Textentrytype
- ⊞ - The type of text entry to allow/display.
- String
string
- Any string.
- Float
float
- Numbers and decimal point only. Will be converted to the standard string representation of the float.
- Integer
integer
- Numbers only. Will be converted to the standard string representation of the integer.
- Password
password
- Any string. Characters will be hidden, displayed as dots.
Buttons
Buttons
- The number of buttons to display in the dialog.
Button Label 1
Buttonlabel1
- The label for the given button number.
Button Label 2
Buttonlabel2
- The label for the given button number.
Button Label 3
Buttonlabel3
- The label for the given button number.
Button Label 4
Buttonlabel4
- The label for the given button number.
Esc On Click Away
Esconclickaway
- If True, a click anywhere but on the pop-up dialog will simulate an esc key press.
Parameters - Callbacks Page
Edit Callbacks
Editcallbacks
- Open the Callback DAT in editor.
Callback DAT
Callbackdat
- The DAT containing callbacks for this component.
Print Callbacks
Printcallbacks
- Print info on each callback to the textport, whether or not a callback is found.
Palette |
---|
• • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • |