PushButton Class
|
|
Create a push button, which can be used to initiate an event and associated action when clicked on by the user.
Inheritance Hierarchy
Namespace:
VO
Assembly:
VOGUIClasses (in VOGUIClasses.dll) Version: 2.24 GA
SyntaxThe PushButton type exposes the following members.
Constructors
Properties|
| Name | Description |
|---|
 | Value |
PushButton:Value always returns FALSE, since it has a single state.
(Overrides Value.) |
Top
Remarks
Unlike check boxes and radio buttons, which have an identifiable state, push buttons have no state; they are always ready to be clicked. However, you can specify one of the push buttons on a window to be the default button, in which case it can be activate by pressing the Enter key; the default push button is indicated by its heavy border.
In Windows, push buttons are the equivalent to a button with the BS_PUSHBUTTON style. The style BS_DEFPUSHBUTTON is also very useful because the button automatically gets focus in a dialog box.
In Windows, push buttons can be created in a resource entity as follows:
1RESOURCE IDD_ABOUT DIALOG 20, 20, 160, 120
2STYLE WS_POPUP | WS_DLGFRAME
3BEGIN
4PUSHBUTTON "Cancel" IDB_CANCEL, 64, 50, 32, 14
5DEFPUSHBUTTON "OK" IDB_OK, 64, 80, 32, 14,; WS_GROUP
6END
See Also