Control
From REALbasicWiki
Control is the base class for all controls, including RectControl. Its methods, properties and events can be accessed in most of its children.
Contents |
[edit] Superclass
Control inherits from Object.
[edit] Methods
[edit] Sub Close()
Removes the control from its window and destroys any underlying OS control. The object itself may live on if other references to it exist, but attempts to access most properties or methods will fail.
[edit] Properties
[edit] Handle As Integer
(ReadOnly) - A handle to the control. When nonzero, it is a reference to an underlying OS object for use with external functions.
[edit] Index As Integer
(ReadOnly) - Used to identify the element if this control is part of a control-array
[edit] MouseX As Integer
(ReadOnly) - The distance in pixels of the mouse from the left of the window.
[edit] MouseY As Integer
(ReadOnly) - The distance in pixels of the mouse from the top of the window.
[edit] Name As String
(ReadOnly) - The name of the control as set in the IDE.
[edit] PanelIndex As Integer
Gets or sets the panel of a PagePanel or TabPanel on which the control appears.
[edit] Scope As Integer
(ReadOnly) - Public = 0, Private = 2
[edit] Window As Window
(ReadOnly) - The window or ContainerControl which is the control's parent. Set to Nil if there is no parent.
[edit] Events
[edit] Sub Open()
Fires when the control is about to open.
[edit] Sub Close()
Fires when the control is about to close.
