Create a spin button using the style bits listed below. These styles can
be joined together by using logical ORs (|).
- Specify one of the following to determine whether
a spin field will be a master or a servant. If neither is specified, SPBS_SERVANT
is the default.
SPBS_MASTER
The spin button component consists of
at least one single line entry field (SLE), or spin field, and two arrows,
the Up Arrow and the Down Arrow. When a spin button contains more than one
spin field, the master component contains the spin arrows. If the component
contains only one spin field, it should be a master.
SPBS_SERVANT
You can create a multifield spin button by spinning
servants from the master.
Specify
one of the following to determine the type of characters allowed in the
spin field:
SPBS_ALLCHARACTERS
Any character can be typed in
the spin field. This is the default.
SPBS_NUMERICONLY
Only the digits 0-9 and the minus sign (-) can be
typed in the spin field.
SPBS_READONLY
Nothing
can be typed in the spin field.
Specify
one of the following to determine how the text is to be presented in the
spin field:
SPBS_JUSTLEFT
Left-justify the text. This is the
default.
SPBS_JUSTRIGHT
SPBS_JUSTCENTER
Specify
the following when you do not want a border around the spin button:
SPBS_NOBORDER
Suppresses drawing a border.
Specify
the following to increase the spin speed:
SPBS_FASTSPIN
Enables the spin button to increase
the spin speed with time. The speed doubles every two seconds.
Note:
The spin button skips information when this option is specified. Do
not use SPBS_FASTSPIN if the application requires that this field be checked
each time a spin up or spin down occurs. Do not specify this option on a
master component that has servants spun from it.
Specify
the following to pad numeric fields with 0s. This is useful when the spin
field contains values that represent time or money.
SPBS_PADWITHZEROS
The output number is padded at
the front between the first non-zero digit and the field width, or 11 characters,
whichever is the lesser. The negative sign, if there is one, is retained.
The maximum number of characters required to display a LONG
number is 11.
[Back]
[Next]