Macromedia dreamweaver 8-extending dreamweaver User Manual

Page of 504
215
9
CHAPTER 9
Toolbars
You can create a toolbar for Macromedia Dreamweaver 8 simply by creating a file that defines 
the toolbar and placing that file in the Configuration/Toolbars folder. Within a toolbar file, 
you can define items such as check buttons, radio buttons, text boxes, and pop-up menus 
using a few custom XML tags. You can assign attributes and commands to toolbar items to 
specify how they look and behave, include other toolbar files, and reference toolbar items that 
are defined in other toolbars.
The following table lists the files you use to create a toolbar:
How toolbars work
Toolbars are defined by XML and image files that are stored in the Toolbars folder of the main 
Dreamweaver Configuration folder. The default Dreamweaver toolbars are stored in the 
toolbars.xml file in the Configuration/Toolbars folder. When Dreamweaver starts, it loads all 
the toolbar files in the Toolbars folder. You can add new toolbars simply by copying a file into 
the Toolbars folder rather than modifying the original toolbars.xml file.
Toolbar XML files define one or more toolbars and their toolbar items. A toolbar is a list of 
items such as buttons, text boxes, pop-up menus, and so on. A toolbar item represents a single 
control that a user can access in a toolbar. 
Path
File
Description
Configuration/Toolbars/
toolbars.xml Edit 
this file to change the contents of 
the toolbar.
Configuration/Toolbars/
newtoolbar
.xml
Create this file to create a new toolbar.
Configuration/Toolbars/
imagefile
.gif
Icon image for toolbar control.
Configuration/
Commands/
MyCommand.htm
Command file associated with toolbar 
item.