The OptionField class provides a list of text strings from which the user can make one selection. The field displays one choice, and when the user clicks the field, OpenROAD displays the rest of the choices in a pop-up window.
The values in the list are stored in the
ValueList attribute (see
ValueList Attribute), inherited from ChoiceField.
The default value that appears in the field is one of the choices in the choice list. If you update the list at runtime (using the
UpdChoiceList method (see
UpdChoiceList Method)), there is no longer a current value. You must reset the field's value after you use the UpdChoiceList method.