UserGuide

Desktop Control Hierarchy

From Xojo Documentation

The built-in controls have an inheritance hierarchy. The base class is called Control and it contains several common events, properties and methods. RectControl subclasses Control and adds additional events, properties and methods. Most desktop controls subclass RectControl, although a few have another subclass in between.

Below is a list of some of the common events, properties and methods that are available for UI controls.

Control Hierarchy Diagram

Control

Control is the base class for all desktop controls. Refer to the Language Reference for details on all its events, properties and methods.

Events

Close

Called when the control is closing because the layout upon which it rests is closing.

Open

Called when the control is opening because the layout upon which it rests is opening. Use this to do any control initialization.

Properties

Handle

The handle can be used to interface with OS APIs using the Declare command.

Index

The Index is used with Control Sets.

MouseX, MouseY

The X and Y coordinates of the mouse cursor in points.

Name

The name of the control.

PanelIndex

When a control is on a PagePanel or TabPanel, this value indicates the panel on which it resides.

Scope

Set to Public or Private. Private controls cannot be accessed outside the Window.

Window

Identifies the parent window of the control.

Methods

Close

Call this method to remove the control from the window.

RectControl

RectControl is a subclass of Control. Most controls that can appear on a Window are subclassed from RectControl. Refer to the Language Reference for details on all its events, properties and methods.

See Also

UserGuide:Desktop UI, UserGuide:Desktop Windows topics