Page History
...
The CaptionList property adds unique functionality to the SRP Button Control. The Caption property is useful for adding a single centered caption, which meets most basic needs. The CaptionList property allows you to place any number of captions aligned and formatted as you see fit.
...
Pos | Name | Type | Description |
---|---|---|---|
<1, 1> | Caption | Text | The caption text |
<1, 2> | Horizontal Alignment | Formatted String | Horizontal alignment of the caption |
<1, 3> | Vertical Alignment | Formatted String | Vertical alignment of the caption |
<1, 4> | Font | Font | Font used to render the caption |
<1, 5> | Color | Color | Color used to render the caption |
...
The Font value uses the standard Font array to set the font used to render the caption. This way, you can have multiple captions with different fonts
The Color value uses any valid Color setting.
Ideas on Customizing Captions and Icons
For more information and ideas regarding caption and icon lists, see the CaptionList and IconList topic.
Example
Code Block |
---|
// Set a button whose caption is "Hello World" with each word in opposite corners
CaptionList = ""
CaptionList<1> = "Hello":@VM:"L":@VM:"T"
CaptionList<2> = "World":@VM:"R":@VM:"B"
Set_Property(@Window:".OLE_BUTTON", "OLE.CaptionList", CaptionList) |