Returns or sets the top position in pixels of the caption text in the object.
Object.CaptionTop [ = lCaptionTop ]
The CaptionTop property syntax has the following parts:
|
Name |
Type |
Description |
|
Object |
ASwitch |
ASwitch control |
|
lCaptionTop |
An integer specifying the top position in pixels of the caption text on the object. |
The default value is -1 (not used).
The following statement changes the ASwitch's CaptionTop so the caption starts at twelve pixels from the top of the focus area of the switch.
sw1.CaptionTop=12
CaptionColor, CaptionFont, CaptionHeight, CaptionLeft, CaptionWidth