L-VIS User Manual
97
LOYTEC
Version 6.2
LOYTEC electronics GmbH
9.2 Menu
A menu object is used to manage a collection of menu item objects. On the device, a menu
is a window which opens on the left side of the display and shows the items which are
contained in the menu. The menu can handle more items than fit on the screen. If this is the
case, a scroll bar is provided for the user to move the contents of the menu up and down to
see the hidden items.
NOTE:
Every project always has a menu object as the top level object. This is called the root menu.
It must always be there and it cannot be deleted. However, you may adjust its properties
just like any other menu.
Apart from the root menu, the only other places where menu objects may be created are as
child objects of menu items. If a menu object is connected to a menu item, selecting the
item will show the connected menu. This is called a sub-menu. To navigate back from the
sub-menu to the parent menu, the sub-menu must contain a return item, which is a menu
item object which has no further objects connected to it (no page and no sub-menu to
show).
9.2.1 Menu Properties
A menu consists of a frame and an area containing the menu items. The frame includes the
menu title and the scroll bar, whereas the item container is the inside space of the menu,
where the menu items are shown. The assignment of colors on the
Color
property page to
parts of the menu can be seen in the following table.
Color Name
Element to which the color applies
Text
Menu title text.
Frame
Title background and the frame around the scroll bar.
Scrollbar
Scrollbar, color of the filled bar.
Scrollbar Backgr.
Scrollbar container background.
Background
Background of the menu item area. The background of a menu cannot be
set to be transparent.
Table 11: Color assignment for menus
On the
Menu/Page
property page, the width of the menu item area and the scroll bar can be
entered. The value is specified in LCD pixel (the full screen width being 320 pixels). The
Bitmap Width
parameter specifies how much space for icons to the left of the menu item
text should be reserved, if an item uses a bitmap. This is used to have a vertically aligned
text column, even when the icons of individual items do not have the same width.
NOTE:
Even though the bitmap width parameter changes the appearance of menu items, it is a
property of the menu because it is the same for all items which are shown in this menu.
Moving an item to a different menu will show the item according to the bitmap with rule of
the new menu.
9.3 Menu Item
Menu item objects are used to build the contents of a menu. They are shown in the menu in
the order in which they appear in the object tree. On the device, each menu item becomes a
selectable area of the menu, which the user may select to open the page or the sub-menu
associated with the item.