Convenient way to set all tabs' captions at once.

Usage

Set_Property(OLECtrlEntID, "OLE.CaptionList", Value)

Values

Comma delimited list of tab captions.

Default: ""

Remarks

The CaptionList property is a quick way to set the captions of all your tabs. Normally, you would set the TabCount property to the number of desired tabs, then use the TabCaption property to set each tab's caption individually. This property sets the captions in a single call, though you do still have to set the TabCount first.

Example

// The long way
Set_Property(@Window:".OLE_TAB", "OLE.TabCount", 3)
Set_Property(@Window:".OLE_TAB", "OLE.TabCaption[1]", "Contacts")
Set_Property(@Window:".OLE_TAB", "OLE.TabCaption[2]", "Invoices")
Set_Property(@Window:".OLE_TAB", "OLE.TabCaption[3]", "Reports")
 
// The short way
Set_Property(@Window:".OLE_TAB", "OLE.TabCount", 3)
Set_Property(@Window:".OLE_TAB", "OLE.CaptionList", "Contacts,Invoices,Reports")

See Also

TabCountTabCaption

  • No labels