| The commands are the basic components of your menus. They represent the options to display on the
menus so the users can navigate to them.
Commands usually perform some action when activated by a
user. They may be activated by moving the mouse over them,
clicking the left mouse button on them, by double-clicking
them, or by using combinations of the three available
actions.
The type of actions a command can produce are countless, but
DHTML Menu Builder provides an easy-to-use interface to let you
implement the most common:
- Opening a page (following a link).
- Opening another group (this is used to create submenus).
- Opening a page in a new browser window.
- Sending email.
- Running a small piece of code written in JavaScript or VBScript.
There are two types of command components:
- Commands
These are items that receive and perform actions
- Separators
These are simple lines used to separate commands inside a
group. Separators do not receive or perform any kind of
actions.
Commands are dual-state items and therefore
have (for the most part) two settings:
- Normal
The settings in this mode apply when the command is not
selected.
- Over
The settings in this mode apply or become active when the
mouse is over the command.
Below are all the possible attributes supported by a
command.
- Color
You can assign a background color and the color of the
command's caption text.
This setting supports two sets of two color definitions: background over and background normal; and text over and text normal.
- Font
This setting controls the font type, size, and style
used to display the command's caption text.
You can apply different font settings for the two modes, Normal and Over.
- Cursor
One of five predefined cursors can be set to display
when a user moves his mouse pointer over a command.
To change a command's cursor, select the command. Then click
Menu on the menu and click
Cursor.
- Image
Commands support three types of images, one image to the left of the caption, one image to the right of the caption, and one image as the background.
The two images that can be placed at the right and/or left of the
commands support rollover effects. This means that you can
change either image when the command is selected.
Note: When using a background image, the color on the Normal
state is not used and the command is rendered as
transparent.
- Selection Effects
The settings in this section control the style and color
of the bounding rectangle of the menu items.
- Normal and Over
These settings change the border of the commands
when the mouse is over (Over state) and not over (Normal state).
You can choose from three different types of border
effects:
- (none): No border will be drawn.
- Raised: A border will be drawn which has the
effect of raising the command towards you.
- Sunken: A border will be drawn which has the
effect of insetting the border into the group's
background.
- Double: Two two
solid borders will be drawn around the command.
- Bevel: Two borders – one raised and one sunken, each half the
size of the total border width – will be drawn around the command.
You can also define the base
color that will be used to draw these borders by using
the color selection boxes next to the border style
controls.
- Border Size
This setting creates a border of the specified width
around the commands.
- Horizontal and Vertical Margins
These settings control the distance from the border of
the commands to their contents.
| Related topics of interest:
|
|