Click or drag to resize

Button Class (Typed)

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

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.24 GA
Syntax
[TypesChangedAttribute]
 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 propertyCaption
A string representing the text that is displayed adjacent to a check box or radio button, or on top of a push button. The Button:Caption assign also changes Button:CurrentText for the button.
(Overrides Caption.)
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
Functions
  NameDescription
Public methodAsString
Return an identifying label for the button.
(Overrides AsString.)
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