Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
languagexml
<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>