![]() Table of Contents
|
Basic Concept In order to create navigation menus the Navigation module must be installed. This module uses a table-like system to describe a menu, see Figure 1 below.
The upper part of this table is called top while the corresponding lower part is called bottom. It is in between these parts that the menu text is written, in the text part. Additionally, there is a space between each text line, called delimit. Every row is divided into three sections, the left, middle and right section. For the text row different appearance can be defined for when it is the selected entry or the mouse is placed over it, with selected or mouseover modifiers. When creating a menu the appearance of each section can be defined by stating for example, that the left top should have a white background while the right bottom should be blue, and so forth. The Navigation module also allows for horizontal menus, as shown in Figure 2.
The Navigation module is based upon the <navigation> tag, each of the cells in the menu is defined by including <textstyle>, <boxstyle>, <submenu> and <mi> tags in the <navigation> tag. The <textstyle> and <boxstyle> tags define the appearance of text and cells respectively. The <submenu> tag is useful when nestling <navigation> tags, while the <mi> tags is used for the actual text of the menu items. The <mi> tag is usually dynamically generated by the <sb-menu> tag or some other RXML tag. Each of these tags take a number of attributes which specify the size, color and appearance of the menu. |