The caption alignment within the control's bounds.
Usage
Set_Property(OLECtrlEntID, "OLE.CaptionAlignment", Array)
Values
Array has the following structure:
Pos | Name | Type | Description | Default |
---|---|---|---|---|
<1> | Vertical Alignment | Option | Aligns the caption vertically along the top, center, or bottom of the control | Center |
<2> | Horizontal Alignment | Option | Aligns the caption horizontally along the left, center, or right of the control | Center |
Remarks
The CaptionAlignment property aligns the caption along any edge of the control. This multivalued property has two fields: vertical alignment and horizontal alignment. Possible values for vertical alignment are:
Value | Abbr. | Description |
---|---|---|
Top | T | Places caption along the top of the control |
Center | C | Places caption in the vertical center of the control |
Bottom | B | Places caption along the bottom of the control |
Possible values for horizontal alignment are:
Value | Abbr. | Description |
---|---|---|
Left | L | Places caption along the left side of the control |
Center | C | Places caption in the horizontal center of the control |
Right | R | Places caption along the right side of the control |
Use both fields to position the caption anywhere within the control.
Example
// Align the caption to the control's top left sides Set_Property(@Window:".OLE_PICTURE", "OLE.CaptionAlignment", "Top":@FM:"Left")