MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Bedienungsanleitung Seite 15

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 28
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 14
Customizing Macromedia Dreamweaver MX 15
<menuitem>
Description
Defines a menu item for a Dreamweaver menu.
Attributes
name, id, {app}, {key}, {platform}, {enabled}, {arguments}, {command}, {file},
{checked}, {dynamic}
name
The menu item name that appears in the menu. An underscore indicates that the following
letter is the commands access key (mnemonic), for Windows only.
id Used by Dreamweaver to identify the item. This ID must be unique throughout the menu
structure. If you add new menu items to menus.xml, ensure uniqueness by using your company
name or another unique string as a prefix for each menu items ID.
app The name of the application in which the menu item is available. Not currently used.
key The keyboard shortcut for the command, if any. Use the following strings to specify
modifier keys:
Cmd specifies the Control key (Windows) or Command key (Macintosh).
Alt and Opt interchangeably specify the Alt key (Windows) or Option key (Macintosh).
Shift specifies the Shift key on both platforms.
Ctrl specifies the Control key on both platforms.
A plus (+) sign separates modifier keys if a given shortcut uses more than one modifier. For
example,
Cmd+Opt+5 in the key attribute means the menu item is executed when the user
presses Control+Alt+5 (Windows) or Command+Option+5 (Macintosh).
Special keys are specified by name: F1 through F12, PgDn, PgUp, Home, End, Ins, Del, Tab, Esc,
BkSp, and Space. Modifier keys can also be applied to special keys.
platform Indicates which platform the item appears on. Valid values are "win", meaning
Windows-only, or "mac", meaning Macintosh-only. If you dont specify the platform attribute,
the menu item appears on both platforms. If you want a menu item to behave differently on
different platforms, supply two menu items with the same name (but different IDs): one with
platform="win" and the other with platform="mac".
enabled Provides JavaScript code (usually a JavaScript function call) that determines whether the
menu item is currently enabled. If the function returns
false, the menu item is dimmed. The
default value is
"true", but it’s best to always specify a value for clarity even if the value is "true".
arguments Provides arguments for Dreamweaver to pass to the code in the JavaScript file that
you specify in the
file attribute. Enclose arguments in single quotation marks ('), inside the
double quotation marks used to delimit an attributes value.
command Specifies a JavaScript expression that’s executed when the user selects this item from the
menu. For complex JavaScript code, use a JavaScript file (specified in the
file attribute) instead.
You must specify either
file or command for each menu item.
Seitenansicht 14
1 2 ... 10 11 12 13 14 15 16 17 18 19 20 ... 27 28

Kommentare zu diesen Handbüchern

Keine Kommentare