Adobe Extending Dreamweaver CS4 Manuel d'utilisateur Page 183

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 387
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 182
177
EXTENDING DREAMWEAVER CS4
Toolbars
Example
<RADIOBUTTON ID="DW_CodeView"
image="Toolbars/images/MM/codeView.gif"
disabledImage="Toolbars/images/MM/codeView_dis.gif"
tooltip="Show Code View"
domRequired="false"
enabled="dw.getDocumentDOM() != null"
checked="dw.getDocumentDOM() != null && dw.getDocumentDOM().getView() == 'code'"
command="dw.getDocumentDOM().setView('code')"
update="onViewChange"/>
<menubutton>
Description
A menu button is a button that invokes the context menu that is specified by the menuid attribute. Dreamweaver
implements Mouse-over and Pressed states for menu buttons. Dreamweaver does not draw the menu arrow, which is
the downward-pointing arrow that indicates menu items are attached to the button; you must include it in your icon.
The File Management and Code Navigation buttons on the Dreamweaver document toolbar are examples of menu
buttons.
Attributes
id, image, tooltip, menuID, domRequired, enabled, {showIf}, {disabledImage}, {overImage},
{label}, {file}, {update}
For a description of each attribute, see “Item tag attributes” on page 180.
Contents
None.
Container
The toolbar tag or the toolbarset tag.
Example
<MENUBUTTON ID="DW_CodeNav"
image="Toolbars/images/MM/codenav.gif"
disabledImage="Toolbars/images/MM/codenav_dis.gif"
tooltip="Code Navigation"
enabled="dw.getFocus() == 'textView' || dw.getFocus() == 'html'"
menuID="DWCodeNavPopup"
update="onViewChange"/>
<dropdown>
Description
A drop-down menu (or pop-up menu) is a noneditable menu that executes a specific command when you select an
entry and the menu updates itself, based on an attached JavaScript function. The drop-down menu looks and acts the
same as the Format control in the Text Property inspector, except it’s a standard size instead of the small Property
inspector size.
Vue de la page 182
1 2 ... 178 179 180 181 182 183 184 185 186 187 188 ... 386 387

Commentaires sur ces manuels

Pas de commentaire