Spinner and Slider Control Types

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:

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: