If the control string is empty, then the control is set to be Edit.
We can user the control string:
to set the control to password edit box, in which input is enciphered.
An example in a dialog:
We can use the control string:
to set the control to checkbox.
An example in a dialog:
We can use the control string:
to set a group of Buttons.
An example in a dialog:
We can use the control string:
to set a group of Radio Buttons.Only one Radio Button can be set to checked.
An example in a dialog:
We can use the following control string to set the DynaCtrl to Slider in X-Function Dialog.There are two types slider decided by whether we can type into precise value in Origin.
There are two types ComboBox: Editable ComboBox and Uneditable ComboBox. This supports list of both numbers and strings.
An example in a dialog:
Note: Enumeration for the combobox will be automatically added in the code of function body and it can be used as input value for the variable when accessed from script window.
For example: AAv: Adjacent-Averaging| SG: Savitzky-Golay| PF: Percentile Filter will create a combo box with enumeration. You can use both smooth method:=SG
and smooth method:=1
.
There are two types of ColorList: ColorList (0 offset) and ColorList with custom color (1 offset).
You can set the default data in Data field of the X-Function Bulider.
Variable Data | Input | Output | Input/Output |
---|---|---|---|
<unassigned> | The default value set to be missing Value. | The variable value is set to be empty Value. And there is a <Output> checkbox before the control. If it is checked, then the result variable value can be output. Else, the result variable value will not be output.
You can set the optional string U:n(n>=2), let the checkbox not visible. |
The variable value is set to be empty value. |
Splicified value | The default value set to be the splicified Value. | do nothing. | Set the the splicified value as input. |
LabTalk Variable Name | The default value set to be the LabelTalk variable value. | The variable result value will be put into LabTalk variable. | The variable value can be got from the Labtalk Variable Name. After Execution, the result value will be put into the Labtalk Variable. |
Range string | The default value set to the Range string value. | The variable result value will be put into the Range. | The variable value can be got from the range. After Execution, the result value will be put into the Range. |
You can see the more detailes in Option Strings