Common visual component properties
These properties, events, and methods are common to many visual form components:
|
Property |
Default |
Description |
|
|
The next object in the z-order | |
|
Default |
Specifies whether a box border appears (0=Default, 1=Raised, 2=Lowered, 3=None, 4=Single, 5=Double, 6-Drop Shadow, 7=Client, 8=Modal, 9=Etched In, 10=Etched Out) | |
|
0 |
The type of Drag&Drop operation to be performed (0=None, 1=Copy, 2=Move) | |
|
true |
Whether a component can get focus and operate | |
|
false |
Whether the text in a component appears in bold face | |
|
false |
Whether the text in a component appears italicized | |
|
Arial |
The typeface of the text in a component | |
|
10 |
The point size of the text in a component | |
|
false |
Whether the text in a component appears striked-through | |
|
false |
Whether the text in a component is displayed underlined | |
|
|
The form that contains a component | |
|
|
Height in the form’s current metric units | |
|
|
Help file name | |
|
|
Help index topic or context number for context-sensitive help | |
|
|
The Windows handle for a component | |
|
-1 |
Supplementary control ID number | |
|
0 |
The location of the left edge of a component in the form’s current metric units, relative to the left edge of its container | |
|
0 |
The mouse pointer type when the pointer is over a component | |
|
|
The name of a component | |
|
1 |
The page of the form on which a component appears | |
|
|
A component’s immediate container | |
|
true |
Whether a component is printed when the form is printed | |
|
|
Tool tip displayed when pointer hovers over a component | |
|
|
Message displayed in status bar when a component has focus | |
|
true |
Whether a component is in the tab sequence | |
|
0 |
The location of the top edge of a component in the form’s current metric units, relative to the top edge of its container | |
|
true |
Whether a component is visible | |
|
|
Width in the form’s current metric units
| |
|
Event |
Parameters |
Description |
|
|
Reports only: before a component is rendered; return value determines whether component is rendered | |
|
<from palette expL> |
After a component is first added from the palette and then every time the form is opened in the Form Designer | |
|
|
When a Drag&Drop operation begins for a component | |
|
|
After a component gains focus | |
|
|
When F1 is pressed—overrides context-sensitive help | |
|
<flags expN>, |
When the left mouse button is double-clicked | |
|
<flags expN>, |
When the left mouse button is pressed | |
|
<flags expN>, |
When the left mouse button is released | |
|
|
After a component loses focus | |
|
<flags expN>, |
When the middle mouse button is double-clicked | |
|
<flags expN>, |
When the middle mouse button is pressed | |
|
<flags expN>, |
When the middle mouse button is released | |
|
<flags expN>, |
When the is moved over a component | |
|
|
After the form containing a component is opened | |
|
|
Reports only: after a component is rendered | |
|
<flags expN>, |
When the right mouse button is double-clicked | |
|
<flags expN>, |
When the right mouse button is pressed | |
|
<flags expN>, |
When the right mouse button is released
| |
|
<form open expL> |
When attempting to give focus to a component; return value determines whether the component gets focus.
| |
|
Method |
Parameters |
Description |
|
<type expC> |
Initiates a Drag&Drop operation for a component | |
|
<left expN> |
Repositions and/or resizes a component | |
|
|
Explicitly releases a component from memory | |
|
|
Sets focus to a component |