Versions Compared

Key

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

...

ElementDescriptionVersion IntroducedPro Version Introduced
<Tabs>The list of all available tabs.1.03.2

...

ElementDescriptionAppearsVersion IntroducedPro Version Introduced
<Group>A single group that appears within a single tab and contains controls.Zero or once1.03.2

...

The Tab element defines a single tab on the ribbon. A tab is equivalent to a top level menu in the current implementation of menus in OI. You don't have to define a File menu since all ribbons have a system button that acts as the file menu. Once you've created your tabs, you fill them with <Group> elements. You cannot place controls directly in a tab. Controls must go into groups instead.

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>

 

...