118
User Interfaces for Extensions
Any option tags that are placed inside the
select
tag are ignored.
To add a database tree control to a dialog box, you can use the following sample code with
appropriate substitutions for quoted variables:
<select name="DBTree" style="width:400px;height:110px" ¬
type="mmdatabasetree" connection="
connectionName
" noexpandbuttons
showHeaders></select>
You can change the
connection
attribute to retrieve selected data and display it in the tree.
You can use the
DBTreeControl
attribute as a JavaScript wrapper object for the new tag.
For more examples, see the DBTreeControlClass.js file in the Configuration/Shared/
Common/Scripts folder.
Adding a variable grid control
The variable grid control has the following attributes:
The following example adds a simple variable grid control to a dialog box:
<select name="ParamList" style="width:515px;" ¬
type="mmparameterlist columns"="Name,SQL Data ¬
Type,Direction,Default Value,Run-time Value" size=6></select>
noexpandbuttons
When this attribute is specified, the tree control does not draw the
expand Plus (+) or collapse Minus (-)
indicators
or the associated
arrows on the Macintosh. This attribute is useful for drawing
multicolumn list controls.
showheaders
When this attribute is specified, the tree control displays a header at
the top that lists the name of each column.
Attribute name
Description
name
Name of the variable grid control
style
Width of the control, in pixels
type
Type of control
columns
Each column must have a name, separated by a comma
columnWidth
Width of each column, each separated by a comma. The columns are
of equal width if you do not specify widths.
Attribute name
Description
Summary of Contents for DREAMWEAVER 8-EXTENDING DREAMWEAVER
Page 1: ...Extending Dreamweaver...
Page 8: ...8 Contents...
Page 14: ...14 Introduction...
Page 16: ......
Page 54: ...54 Customizing Dreamweaver...
Page 96: ...96 Customizing Code View...
Page 98: ......
Page 110: ...110 Extending Dreamweaver...
Page 138: ......
Page 166: ...166 Insert Bar Objects...
Page 180: ...180 Commands...
Page 248: ...248 Toolbars...
Page 260: ...260 Reports...
Page 278: ...278 Tag Libraries and Editors...
Page 288: ...288 Property Inspectors...
Page 378: ...378 Server Behaviors...
Page 398: ...398 Data Sources...
Page 432: ...432 Server Models...
Page 456: ...456 Data Translators...
Page 482: ......
Page 492: ...492 The Shared Folder...