Click or drag to resize

PushButton Class

X#
Create a push button, which can be used to initiate an event and associated action when clicked on by the user.
Inheritance Hierarchy
Object
  VObject
    Control
      TextControl
        Button
          PushButton

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.24 GA
Syntax
 CLASS PushButton INHERIT Button
Request Example View Source

The PushButton type exposes the following members.

Constructors
  NameDescription
Public methodPushButton
Construct a push button.
Top
Properties
  NameDescription
Public propertyValue
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:
X#
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

Reference