Using The Dialog Editor Tool - Adobe GoLive CS2 Programmer's Manual

Hide thumbs Also See for GoLive CS2:
Table of Contents

Advertisement

SDK Programmer's Guide
The frameBounds property of the Inspector window is read-only. When the Inspector window is inactive,
the dimension values are all zero. For other kinds of dialogs, assigning a new bounds object to this
property sets the associated dialog window's size and location.
// assume we created <jsxpalette name="myPalette" ... >
// get myPalette from the global dialogs array
var dlg = dialogs["myPalette"];
// hide it if its showing
if (dlg.visible == true)
dlg.visible = false;
// new location is (10, 10) and new size is 100x100 pixels
dlg.frameBounds = {location:{x:10, y:10}, size:{width:100, height:100}};
// show the palette
dlg.visible = true;

Using the Dialog Editor tool

The SDK provides a tool called the Dialog Editor in the SDK Extend Scripts folder. To use it, you
must select it in the Modules panel of the Preferences dialog, and restart GoLive—see
set of tools and sample
The Dialog Editor helps you to use GoLive as a visual editor in which to design your extension's
dialogs, palettes, and inspectors. The tool adds the Dialog Editor object types commonly-used dialog
controls to the Objects palette. In addition to being a very useful application-building tool, the Dialog
Editor is itself a sample of a GoLive extension, which you can study to help you design and build your
own extensions.
To use the Dialog Editor tool:
1. Open the extension's Main.html file in the GoLive Layout view.
2. Open the Objects palette.
3. Select the Dialog Editor object type from the object type menu.
Objects palette
Layout Grid entry
Adobe GoLive CS2 SDK
extensions.
Windows and Controls
object type menu
55
Installing the core

Advertisement

Table of Contents
loading

Table of Contents