Control Class


Control is the class for any control in a window.


Control is derived from the AnyWin class; several classes derive from this class.

Identification of Control Parts

The Control class comes with two predefined parts: VScrollBar and HScrollBar. These two parts represent the vertical and horizontal scroll bars that sometimes appear in a control such as a list box or text field.

To refer to these parts, you specify the control and then the part, separated by the dot operator, and then call the method on the part. For example:

TextEditor.Document.VScrollBar.ScrollByLine (10)

The methods and properties for these parts are the same as the methods and properties for the ScrollBar class.

Methods and Properties

In addition to the methods and controls it inherits from the AnyWin class, Control has the following methods and properties: