A spinner control type is identified by TYPE_SPINNER
and a slider control type is identified by TYPE_SLIDER
. Both control types have similar requirements. They require a spinner type identifier (EditSpinnerType
), list of dialog item resource IDs, and a number of ticks. The spinner type identifier can be one of the values described below:
EDITTYPE_INT
- Any integer value.EDITTYPE_FLOAT
- Any floating point value.EDITTYPE_UNIVERSE
- This is a value in world space units. It respects the system's unit settings (for example feet and inches).EDITTYPE_POS_INT
- Any non-negative integer.EDITTYPE_POS_FLOAT
- Any non-negative floating point value.EDITTYPE_POS_UNIVERSE
- This is a positive value in world space units. It respects the system's unit settings (for example feet and inches) .EDITTYPE_TIME
- This is a time value. It respects the system time settings (SMPTE for example).The list of dialog item IDs depends on the ParamType
of the parameter. For TYPE_POINT3
and TYPE_RGBA
, you must supply 3 pairs of IDs, one for each coordinate, each pair specifying the edit box and slider IDs. For the other parameter types you specify one edit box/slider pair of IDs.
For example
... p_ui
,TYPE_SPINNER
, EDITTYPE_UNIVERSE
, IDC_EDITBOX, IDC_SPINNER, <number ofticks> ...
For Point3
you can do the following:
... p_ui
,TYPE_SPINNER
, EDITTYPE_UNIVERSE
, IDC_EDITBOX1, IDC_SLIDER1, IDC_EDITBOX2, IDC_SLIDER2, IDC_EDITBOX3, IDC_SLIDER3, <number of ticks> ...
A spinner or slider can be used with any of the following parameter types:
TYPE_ANGLE
TYPE_PCNT_FRAC
TYPE_COLOR_CHANNEL
TYPE_FLOAT
TYPE_TIMEVALUE
TYPE_INT
TYPE_POINT3
TYPE_RGBA