The desktop control hierarchy

The built-in controls have an inheritance hierarchy. The base class is called DesktopControl and it contains several common events, properties and methods. DesktopUIControl subclasses DesktopControl and adds additional events, properties and methods. Most desktop controls subclass DesktopUIControl, 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.

../../../_images/the_desktop_control_hierarchy_new_desktop_control_heirarchy.png

DesktopControl

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

Events

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

Opening - 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.

Name - The name of the control.

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.

DesktopUIControl

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

See also

Windows topic