Adobe Extending Dreamweaver CS4 Instrukcja Użytkownika Strona 153

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 387
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 152
147
EXTENDING DREAMWEAVER CS4
Menus and menu commands
Example
<tool name="Hand tool" id="com.Macromedia.dreamweaver.tools.hand">
<!-- tool tags here -->
</tool>
<action>
Description
Contains the key combination and JavaScript to execute when the tool is active and the key combination is pressed.
Attributes
{name}, key, command, id
name A localized version of the action.
key The key combination used to execute the action. For syntax details, see “<menuitem>” on page 143.
command The JavaScript statements to execute. This attribute has the same format as the command attribute of
<shortcut>” on page 145.
id A unique ID used to reference the action.
Contents
None (empty tag).
Container
This tag must be contained in a tool tag.
Example
<action name="Set magnification to 50%" key="5" command="dw.activeViewScale = 0.50" id
="DWTools_Zoom_50" />
<activate>
Description
Contains the key combination to activate the tool.
Attributes
{name}, key, id
name A localized version of the action.
key The key combination used to activate the tool. For syntax details, see “<menuitem>” on page 143.
id A unique ID used to reference the action.
Contents
None (empty tag).
Container
This tag must be contained in a tool tag.
Przeglądanie stron 152
1 2 ... 148 149 150 151 152 153 154 155 156 157 158 ... 386 387

Komentarze do niniejszej Instrukcji

Brak uwag