Page History
...
Element | Description | Version Introduced | Pro Version Introduced |
---|---|---|---|
<Tabs> | The list of all available tabs. | 1.0 | 3.2 |
Child Elements
The following elements can be children of this one.
Element | Description | Appears | Version Introduced | Pro Version Introduced |
---|---|---|---|---|
<Group> | A single group that appears within a single tab and contains controls. | Zero or once | 1.0 | 3.2 |
Attributes
This element supports the following attributes:
Attribute | Description | Version Introduced | Pro Version Introduced |
---|---|---|---|
Caption | The tab's text. (Required) | 1.0 | 3.2 |
ContextCaption | The tab's context caption, if it is meant to be a context tab. See Remarks section for details. | 1.0 | 3.2 |
ContextColor | The tab's context color, if it is meant to be a context tab. See Remarks section for details. | 1.0 | 3.2 |
Key | The unique identifier of the tab. (Required) | 1.0 | 3.2 |
KeyboardTip | The keyboard tooltip that appears when the user holds the Alt key. | 1.0 | 3.2 |
Tooltip | The text to appear when the user hovers over the control. | 1.0 | 3.2 |
Visible | The tab's default visibility state. | 1.0 | 3.2 |
Caption
The Caption can be any text.
...
Context tabs are special colored tabs that appear only when needed. Actually, context tabs only look different and they behave the same as any other tab. In fact, they will all be visible by default unless you set the Visible attribute to "False". When you need to show or hide a context tab at run time, use the TabVisible property. You can set the color of the tab to one of seven colors listed above in the Attributes section using the ContextColor attribute. You can also set the ContextCaption attribute to have more than one tab share a single caption. The context caption appears above these tabs, but two context tabs will only share the caption if they are next to each other. It's up you to keep "grouped" context tabs adjacent.
Example
Code Block | ||
---|---|---|
| ||
<Tab Key="VIEW" Caption="View" KeyboardTip="V"> <Group Key="VIEWS" Caption="Views" /> <Group Key="SHOW" Caption="Show" /> <Group Key="ZOOM" Caption="Zoom" /> <Group Key="WINDOW" Caption="Window" /> <Group Key="MACROS" Caption="Macros" /> </Tab> <Tab Key="DESIGN" Caption="Design" ContextColor="Yellow" ContextCaption="Table Tools"> <Group Key="DESIGNTABLESTYLEOPTIONS" Caption="Table Style Options" /> <Group Key="DESIGNTABLESTYLES" Caption="Table Styles" /> <Group Key="DESIGNTABLEBORDERS" Caption="Borders" /> </Tab> <Tab Key="LAYOUT" Caption="Layout" ContextColor="Yellow" ContextCaption="Table Tools" Visible="True"> <Group Key="LAYOUTTABLE" Caption="Table" /> <Group Key="LAYOUTTABLEDRAW" Caption="Draw" /> <Group Key="LAYOUTTABLEROWSCOLS" Caption="Rows & Columns" /> <Group Key="LAYOUTTABLEMERGE" Caption="Merge" /> <Group Key="LAYOUTTABLECELLSIZE" Caption="Cell Size" /> <Group Key="LAYOUTTABLEALIGNMENT" Caption="Alignment" /> <Group Key="LAYOUTTABLEDATA" Caption="Data" /> </Tab> |