Working with IPushButton Parts

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:

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.


Related procedures
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

Related references
IPushButton
Property Settings -- IPushButton
Portability -- IPushButton