Skip to Main Content
Adobe® Dreamweaver® CS4 Bible
book

Adobe® Dreamweaver® CS4 Bible

by Joseph Lowery
March 2009
Beginner to intermediate content levelBeginner to intermediate
1321 pages
46h 24m
English
Wiley
Content preview from Adobe® Dreamweaver® CS4 Bible
1137
Customizing Dreamweaver
33
arguments. If receiveArguments() is set up, that is the function executed, and the arguments are
read into
receiveArguments(). This function enables the same command to be called from different
sources and have different effects, depending on the arguments passed. The
receiveArguments()
function is used extensively in menu commands and is explained more fully later in this chapter in the
section “Building Menu Commands.”
You can use the
windowDimensions() function, like behaviors and objects, with commands to set
a specific size for the associated dialog box. If
windowDimensions() is not defined, the size of the
dialog box is set automatically. Adobe recommends that
windowDimensions() not be used unless
your parameter form exceeds 640 × 480.
The remainder of the user interface for a command—the parameter form—is constructed in the
same manner with the same tools that are used for objects and behaviors. A command parameter
form or dialog box uses an HTML
<form> in the <body> of the file. If no <form> is declared, the
command executes without displaying a dialog box. All the form elements used in objects—text
boxes, radio buttons, checkboxes, and lists—are available in commands.
Useful command routines
When programming a command, I often get stuck on one small point. “If only I knew how to
_________, I’d be home free,” is my usual refrain. The follow ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Adobe® Dreamweaver® CS5 Bible

Adobe® Dreamweaver® CS5 Bible

Joseph W. Lowery
Dreamweaver® CS3 Bible

Dreamweaver® CS3 Bible

Joseph W. Lowery

Publisher Resources

ISBN: 9780470382523Purchase book