The following tasks are associated with using an
ITextSpinButton* part in visual composition. Tasks that are
common to many parts are described in related topics.
-
- Setting initial contents
- To define the initial text choices for the spin button,
set the initialContents property in the
ITextSpinButton* property sheet. Open the Array of
strings prompter window for the value column, then enter
the text choices.
- Setting the initial choice
- To define a default value for the spin button, set the text
property in the ITextSpinButton* property sheet. Enter
the one of the initialContents property choices in
the value column.
- Preventing user changes
- To prevent the user from entering a value, open the style
property in the ITextSpinButton* 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 ITextSpinButton* 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 ITextSpinButton* property sheet and set the pmCompatible
style to on.
- Getting the selected choice
- To copy the selection from the spin button to a text
connection parameter or attribute, connect the
ITextSpinButton* text attribute to the text
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
ITextSpinButton
Property Settings --
ITextSpinButton
Portability --
ITextSpinButton