SDK Programmer's Guide
</jsxpalette>
</body> </html>
The following figure shows the window created by this code, with the filelist control on the left and
the hierarchy control on the right:
Adding controls to a window dynamically
In addition to those controls that GoLive creates by interpreting tags in an extension's Main.html file,
your JavaScript code can create controls dynamically during a GoLive session; for example, in response to
a user choice in a menu or dialog defined by your extension. A control you create dynamically is
represented by the appropriate type control object, just like those created from scripts.
You can add dynamic controls to a
calling the parent's
For information on the complete range of controls that you can create dynamically, see the GoLive CS2
●
SDK Programmer's Reference.
For examples of using these controls, see the Dynamic UI sample included with the GoLive CS2 SDK.
●
width="200" height="200"
halign="scale" valign="scale">
<jsxview name="fPanel" posx="0" posy="0"
width="100" height="200"
halign="scale" valign="scale">
<jsxcontrol name="myflist" type="filelist" value="add items"
posx="0" posy="0" width="100" height="200"
halign="scale" valign="scale">
</jsxview>
<jsxview name="hPanel" posx="0" posy="0"
width="100" height="200"
halign="scale" valign="scale">
<jsxcontrol name="myhier" type="hierarchy" value="items"
posx="0" posy="0" width="100" height="200"
halign="scale" valign="scale">
</jsxview>
</jsxsplitview>
add
function with a set of parameters appropriate to the control type.
Adobe GoLive CS2 SDK
window Object
or a
panel
Windows and Controls
Object. You create a dynamic control by
72