The following tasks are associated with using an
INumericSpinButton* part in visual composition. Tasks that are
common to many parts are described in related topics.
-
- Setting the value range
- To define the range of numbers for the spin button, open
the range property in the INumericSpinButton*
property sheet and set the lowerBound and upperBound
properties of the range.
- Setting the initial value
- To define a default value for the spin button, set the value
property in the INumericSpinButton* property sheet. Enter
the value in the value column.
- Aligning values
- To align numeric values in the spin button entry field,
set the alignment property in the
INumericSpinButton* property sheet. With the <default>
property value, the spin value is left-aligned.
Alternatively, select one of the following choices in the
value column:
- Preventing user changes
- To prevent the user from entering a value, open the style
property in the INumericSpinButton* property sheet and
set the readOnly style to on.
- Enabling fast spinning
- To make the spin button skip values to cycle faster as
the user continues to spin the button, open the style
property in the INumericSpinButton* property sheet and
set the fastSpin style to on.
- Selecting PM compatibility
- You can define either a native system spin button or an
OS/2 Presentation Manager (PM) spin button. The two
styles are functionally equivalent. To provide a
PM-compatible spin button, open the style property
in the INumericSpinButton* property sheet and set the pmCompatible
style to on.
- Getting the selected value
- To copy the selection from the spin button to a numeric
connection parameter or attribute, connect the
INumericSpinButton* value attribute to the numeric
target.
Common Tasks for Control Parts
Setting Part Style Properties
Setting Part Color Properties
Setting Part Font Properties
Setting Part Handlers
Properties
Setting Part Framing Properties
Working with VisualAge User
Interface Parts
INumericSpinButton
Property Settings --
INumericSpinButton
Portability --
INumericSpinButton