Truely the easiest applet to configure. The following is how the applet looks within html: | |
| |
and that's it there's to it! |
Scripts are stored in files with .p extension by default, but are not restricted to any particular name (and extension) and can be anything (allowed on the system, that is). The script source is composed of two parts: the "options" section which allows for global variable definition and the "menudef" section that describes the menu. While the both parts are optional the order they come with is worthnoting. The "options" section if specified always comes the first. | |
Options | |
Rule for the "options" section looks like this: |
|
and in a file "options" structure is as follows: |
|
where
| |
Menudef | |
Rule for the "menudef" section looks like this: |
|
and in a file "menudef" structure is as follows: |
|
where
|
layout | String
| Sets the menu layout mode. "flat" and "dropdown" are the only valid values. |
backgroundColor | String
| Defines which color the toplevel menu panel is. Color definition is similar to html, i.e. major symbolic values as well as '#rrggbb' forms are well supported. |
backgroundImage | String
| Defines an external tile image for the menu panel. Images are to be found in the applet's codebase directory. If you supply both backgroundColor and backgroundImage, the tile image has the higher priority and thus will be used first of all. (not yet implemented) |
selectionColor | String
| Sets the selected item's color to this value. |
transparency | Integer
| Sets the selection transparency level to the specified value (in %), ranges from 1% to 100%, defaults to 100% with no filtering. |
selectable | Boolean
| Defines if an item be selectable |
The following items have been derived from ItemNode and thus bare all of it's options plus the specifically defined ones.
height | Integer
| Defines the bar height of a |
listType | String
| Sets list type to one of the predefined types (square (default), circle, disc, 3drect_sunk, 3drect_raised) |
listSize | Integer
| Sets the listitem size in pixels |
listColor | String
| Defines the color to use for the label |
listImage | String
| Defines that an external image be used (highest priority if specified) |
carvingType | String
| Sets the carving type to the specified value. There're two carving types: "sunk" (default, carve inwards), and "raised" (mould in relief). |
backgroundColor | String
| is inherited from |
backgroundImage | String
| Sets the background tile image to use in a popup, that shows the items of the very submenu (not yet implemented). |
pointerActiveColor | String
| Defines the color of the tiny triangle a menu item has to its right (to indicate there's more items) when it's selected. |
pointerInactiveColor | String
| Defines the color of the tiny triangle when it's inactive. |
pointerImage | String
| Sets the submenu pointer to the specified image. |
backgroundEnable3d | Boolean
| Specifies whether to use a 3d background for the popup. |
ITEM | Most essential menu system unit: constructs an ordinary (non-menu) item |
LABELLEDITEM | Inselectable item, basically used for menu headings |
LISTITEM | A list item. Submenus can't be list items yet. |
EMBOSSITEM | A carved-style item. |
SEPARATOR | A menu item separator item |
MENU | Most essential submenu item, not clickable |
FLATMENU | Submenu item used with 'flat' menu layouts, is clickable and a url can be assign (via the "href" tag) |
DROPDOWNMENU | Submenu item used with 'dropdown' menu layouts, is clickable and a url can be assign (via the "href" tag) |
|
Appendix