Click or drag to resize

Button Class

X#
Provide the base class from which all X# buttons are subclassed.
Inheritance Hierarchy
Object
  VObject
    Control
      TextControl
        Button
          CheckBox
          PushButton
          RadioButton

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

The Button type exposes the following members.

Constructors
  NameDescription
Public methodButton
Construct a button.
Top
Properties
  NameDescription
Public propertyCurrentText
For check boxes, push buttons, and radio buttons, Button:CurrentText contains NULL_STRING.
(Overrides CurrentText.)
Public propertyImage
An image object representing the icon or bitmap image that is displayed on a button.
Top
Methods
  NameDescription
Public methodAsString
Return an identifying label for the button.
(Overrides AsString.)
Public methodDestroy
Provide a method to de-instantiate any TextControl.Destroy object.
(Overrides Destroy.)
Public methodSetStyle (Overrides SetStyle(Usual, Usual).)
Top
Remarks
You can also use the ControlWindow class to create buttons with behaviors and/or appearances that differ from standard buttons. Using ControlWindow permits controls to trap events. Typical uses might include customizing the appearance of controls (like changing the background and foreground colors) or modifying the key handling.
See Also

Reference