Control style properties
These properties are children of the Control property and can only be used with the style keyword.
Properties
Accelerator
The accelerator key that can be used to access the control by simultaneously pressing Alt and the accelerator key.
Valid values: Any keyboard character.
Data type: String
Readonly
Whether the contents of the control are read-only. The default value is False.
Valid values: True or False
Data type: Boolean
Type
The type of control to use. This is the default property for the Control object.
Valid values: Button, CheckButton, ComboList (reserved for future use), Date, DateTime, DropList, Edit, ListBox, ListControl, MultiLineEdit, Password, RadioButton, SingleLineEdit, Static, or Time.
Data type: Enumeration
Example
The following example shows how control style properties should be defined in mrScriptMetadata:
Q3 "Rating" Style ( Control ( Accelerator = "R", Type = ListBox ) ) categorical [1] {High, Medium, Low};
Because Type is the default child property, it can also be defined using a shortened form as shown in the following example. However, if you define Type in this way, you cannot define any other control style properties.
Q3 "Rating" Style ( Control = ListBox ) categorical [1] {High, Medium, Low};
See