![]() |
Cyclone 3DR Script
from Technodigit, part of Hexagon. Copyright 1997-2023.
|
Provide simple dialog creation methods. More...
Public Member Functions | |
| boolean | AddImage (string imgPath, number width=-1, number height=-1, boolean keepRatio=true) |
| Adds a new image to the Dialog. More... | |
| AddLine (string label, boolean isInput, Object labParams={}, number defaultInput=0) | |
| Adds a new line to the Dialog. More... | |
| AddLine (string label, boolean isInput, Object labParams={}, number defaultInput=0) | |
| Adds a new line to the Dialog. More... | |
| AddLine (string label, boolean isInput, Object labParams={}, string defaultInput="") | |
| Adds a new line to the Dialog. More... | |
| AddOutput (string label, string output, Object labParams={}, Object outParams={}) | |
| Adds a new output line to the Dialog. More... | |
| Object | Execute () |
| Executes the dialog box. More... | |
| SDialog (string title="Dialog") | |
| Dialog constructor. More... | |
| string | toString () |
| Get the type of the variable. More... | |
Static Public Member Functions | |
| static SDialog | New (string title="Dialog") |
| Dialog constructor. More... | |
Provide simple dialog creation methods.
See also Creating Custom Form page for details on how to use this class.
| SDialog::SDialog | ( | string | title = "Dialog" | ) |
Dialog constructor.
| title | (string) Window title |
| boolean SDialog::AddImage | ( | string | imgPath, |
| number | width = -1, |
||
| number | height = -1, |
||
| boolean | keepRatio = true |
||
| ) |
Adds a new image to the Dialog.
Supported formats include PNG, JPG, JPEG, BMP and more.
| imgPath | (string) Image path |
| width | (number) Image width. Negative to ignore. |
| height | (number) Image height. Negative to ignore. |
| keepRatio | (boolean) Should the original size ratio be respected? |
| SDialog::AddLine | ( | string | label, |
| boolean | isInput, | ||
| Object | labParams = {}, |
||
| number | defaultInput = 0 |
||
| ) |
Adds a new line to the Dialog.
Either a simple line with a single label, or also with a text input field. The resulting inputs are then returned by the Execute() method
| label | (string) Label text |
| isInput | (boolean) Should the line include a text input field? |
| labParams | (Object) Label text parameters, as associative array. Available key parameters :
|
| defaultInput | (number) Default text if input field |
| SDialog::AddLine | ( | string | label, |
| boolean | isInput, | ||
| Object | labParams = {}, |
||
| number | defaultInput = 0 |
||
| ) |
Adds a new line to the Dialog.
Either a simple line with a single label, or also with a text input field. The resulting inputs are then returned by the Execute() method
| label | (string) Label text |
| isInput | (boolean) Should the line include a text input field? |
| labParams | (Object) Label text parameters, as associative array. Available key parameters :
|
| defaultInput | (number) Default text if input field |
| SDialog::AddLine | ( | string | label, |
| boolean | isInput, | ||
| Object | labParams = {}, |
||
| string | defaultInput = "" |
||
| ) |
Adds a new line to the Dialog.
Either a simple line with a single label, or also with a text input field. The resulting inputs are then returned by the Execute() method
| label | (string) Label text |
| isInput | (boolean) Should the line include a text input field? |
| labParams | (Object) Label text parameters, as associative array. Available key parameters :
|
| defaultInput | (string) Default text if input field |
| SDialog::AddOutput | ( | string | label, |
| string | output, | ||
| Object | labParams = {}, |
||
| Object | outParams = {} |
||
| ) |
Adds a new output line to the Dialog.
| label | (string) Label text |
| output | (string) Output text |
| labParams | (Object) Label text parameters, as associative array. Available key parameters :
|
| outParams | (Object) Output text parameters (same usage as with labParams)
|
| Object SDialog::Execute | ( | ) |
Executes the dialog box.
| ret.ErrorCode | (number) The error code
|
| ret.InputTbl | (Array<string>) The resulting user input strings (in the same order as the input lines) |
|
static |
| string SDialog::toString | ( | ) |
Get the type of the variable.