The following tasks are associated with using an IPushButton*
part in visual composition. Tasks that are common to many parts
are described in related topics.
-
- Defining text for the button
- To assign text to the push button, do either of the
following:
- On the composition surface, directly edit the
part text.
- In the part property sheet, enter the text in the
value column of the text property.
- Defining the default button
- The default button is automatically selected if the user
presses the Enter key and no button has the input focus.
To define the push button as the default button, open the
style property in the IProgressIndicator* property
sheet and set the defaultButton style to on.
- Defining a help button
- To define the push button as a help button, open the style
property in the IProgressIndicator* property sheet. Then,
set the help and noPointerFocus styles to on.
- Calling an action from a button
- To start the action represented by the button, connect
the IPushButton* buttonClickEvent feature to the
action on the target part.
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
Editing Part Labels Directly
Working with VisualAge User
Interface Parts
IPushButton
Property Settings --
IPushButton
Portability --
IPushButton