Menubar, Menu – Adobe Extending Dreamweaver CS4 User Manual

Page 148

Advertising
background image

142

EXTENDING DREAMWEAVER CS4

Menus and menu commands

<menubar>

Description
Provides information about a menu bar in the Dreamweaver menu structure.

Attributes

name, {app}, id, {platform}

•

name

The name of the menu bar. Although

name

is a required attribute, you can give it the value "".

•

app

The name of the application in which the menu bar is available. Not currently used.

•

id

The menu ID for the menu bar. Each menu ID in the menus.xml file should be unique.

•

platform

Indicates that the menu bar should appear only on the given platform. Valid values are "

win

" and "

mac

".

Contents
This tag must contain one or more

menu

tags.

Container
None.

Example
The main (Document window) menu bar uses the following menubar tag:

<menubar name="Main Window" id="DWMainWindow">

<!-- menu tags here -->
</menubar>

<menu>

Description
Provides information about a menu or submenu to appear in the Dreamweaver menu structure.

Attributes

name, {app}, id, {platform}, {showIf}

•

name

The name of the menu as it will appear on the menu bar. To set the menu’s access key (mnemonic) in

Windows, use an underscore (_) before the access letter. The underscore is automatically removed on the
Macintosh.

•

app

The name of the application in which the menu is available. Not currently used.

•

id

The menu ID for the menu. Every ID in the file should be unique.

•

platform

Indicates that the menu should appear only on the given platform. Valid values are "

win

" and "

mac

".

•

showIf

Specifies that the menu should appear only if the given Dreamweaver enabler is the value

true

. The

possible enablers are:

_SERVERMODEL_ASP, _SERVERMODEL_ASPNET, _SERVERMODEL_JSP,

_SERVERMODEL_CFML

(for all versions of Adobe ColdFusion),

_SERVERMODEL_CFML_UD4

(for UltraDev version 4 of

ColdFusion),

_SERVERMODEL_PHP, _FILE_TEMPLATE, _VIEW_CODE, _VIEW_DESIGN, _VIEW_LAYOUT,

_VIEW_EXPANDED_TABLES,

and

_VIEW_STANDARD

. You can specify multiple enablers by placing a comma (which

means AND) between the enablers. You can specify NOT with

"!"

. For example, if you want the menu to appear

only in Code view for an ASP page, specify the attribute as

showIf="_VIEW_CODE, _SERVERMODEL_ASP".

Advertising
This manual is related to the following products: