Option Field Properties
All the properties for option fields are described under
Common Field Properties (see
Common Field Properties), with the exception of the following properties that are specific to the option field type:
ExactWidth
Specifies the exact outer width of the field. If both MinimumWidth and ExactWidth are positive, ExactWidth takes precedence. If both MinimumWidth and ExactWidth are 0, the default width will be just big enough to hold the largest item in the field.
Default: 0
InnerShadowWidth
Specifies the width of the shadow surrounding the text value. Valid options are:
LW_DEFAULT
LW_THIN
LW_NOLINE
Default: LW_DEFAULT
MinimumWidth
Specifies the minimum outer width of the field. If it is smaller than the smallest width of the items in the field, the largest width of the items is used.
Default: 0
Style
Indicates whether the option field's values are editable. Valid options are:
OF_NORMAL
Specifies that the option field takes on only the values specified for the ValueList property
OF_EDITABLE
Specifies that the end user can enter a value, which then becomes the current value of the field and is displayed in the option field. This value, however, is not added to the actual list of values.
Default: OF_NORMAL
VisibleRows
Specifies the number of rows displayed in the drop-down list
Default: 0
Note: If this value is set to something less than the total number of rows, a scroll bar is automatically provided to allow access to the other rows. Otherwise, all the rows will be displayed with no scroll bars.