Adobe GoLive CS2 Programmer's Manual page 53

Hide thumbs Also See for GoLive CS2:
Table of Contents

Advertisement

SDK Programmer's Guide
You cannot create toolbars programmatically, and you cannot access the toolbar's window object through
the Window.find method. The toolbar windows are, however, in the
name.
The window object's visible property controls whether the toolbar is shown.
You can add controls programmatically using the toolbar window object's
Controls to Windows" on page
The controls on the toolbar are in the children list of the toolbar object, and can be accessed by name.
For example, to register an event handler for one of the toolbar buttons defined above:
<script>
function initializeModule() {
tb = dialogs["myToolbar"];
tb.children["tbbutton1"].addEventListener("onClick",
}
</script>
The visible property of an individual control determines whether it appears on the toolbar when the
toolbar is shown.
"function (e){writeln(e.target.name + "was clicked.");});
Adobe GoLive CS2 SDK
66.
Menus and Toolbars
dialogs
list, and can be accessed by
add
method. See
53
"Adding

Advertisement

Table of Contents
loading

Table of Contents