Sdk Programmer's Guide - Adobe GoLive CS2 Programmer's Manual

Hide thumbs Also See for GoLive CS2:
Table of Contents

Advertisement

Creating tab panels ...............................................................................................................................................................63
Creating split panels .............................................................................................................................................................64
Autolayout of Localized Controls ...........................................................................................................................................65
Adding Controls to Windows...................................................................................................................................................66
Creating different types of controls ................................................................................................................................67
Creating radio button groups .....................................................................................................................................68
Creating text input fields ..............................................................................................................................................68
Creating source and preview controls .....................................................................................................................69
Creating controls with parameters ...........................................................................................................................69
List controls........................................................................................................................................................................70
Adding controls to a window dynamically...................................................................................................................72
Providing Behavior for Controls..............................................................................................................................................73
Handling events for a target control...............................................................................................................................73
Handling simple clicks ...................................................................................................................................................73
Handling different actions............................................................................................................................................73
Handling editing actions...............................................................................................................................................74
Handling events in a control's parent window ...........................................................................................................74
Creating Custom Controls.........................................................................................................................................................76
Defining user interactions with custom controls .......................................................................................................76
Drawing custom controls....................................................................................................................................................76
Updating a control's appearance immediately ....................................................................................................77
Defining drag-and-drop for custom controls ..............................................................................................................77
Control as Sender of a Drag Event.............................................................................................................................77
Receiving a drop event..................................................................................................................................................77
6
Custom Elements ....................................................................................................................... 78
Overview..........................................................................................................................................................................................78
Tags for creating custom elements .................................................................................................................................78
Defining A Custom Element.....................................................................................................................................................79
Defining the tag for a custom element..........................................................................................................................79
Redefining Tags Locally.................................................................................................................................................79
Defining the custom tag's palette icon and HTML content ...................................................................................80
Creating a Palette Entry in the Objects Palette .................................................................................................................81
Adding Palette Entries to a Built-in Tab ...............................................................................................................................81
Adding palette entries to a customized tab.................................................................................................................82
Defining the appearance of a custom element....................................................................................................82
Initializing a custom element box....................................................................................................................................83
Displaying a custom element box ...................................................................................................................................84
Drawing into container boxes ....................................................................................................................................84
drawBox Examples ..........................................................................................................................................................84
Resizing a custom element box........................................................................................................................................86
Built-in undo support ...........................................................................................................................................................86
Inspecting a Custom Element..................................................................................................................................................86
Initializing the Inspector window ....................................................................................................................................87
Responding to changes in the Inspector ......................................................................................................................87
Multiple Inspectors................................................................................................................................................................88
Supporting the Undo and Redo Commands .....................................................................................................................88
Undo support and document parsing ...........................................................................................................................88
The document's undo history ...........................................................................................................................................89
Creating the undo object....................................................................................................................................................89
Initializing the undo object ................................................................................................................................................89
Adobe GoLive CS2 SDK
5

Advertisement

Table of Contents
loading

Table of Contents