Creating tab panels ...............................................................................................................................................................63
Creating split panels .............................................................................................................................................................64
Autolayout of Localized Controls ...........................................................................................................................................65
Adding Controls to Windows...................................................................................................................................................66
Creating radio button groups .....................................................................................................................................68
Creating text input fields ..............................................................................................................................................68
List controls........................................................................................................................................................................70
Providing Behavior for Controls..............................................................................................................................................73
Handling simple clicks ...................................................................................................................................................73
Handling different actions............................................................................................................................................73
Handling editing actions...............................................................................................................................................74
Creating Custom Controls.........................................................................................................................................................76
Drawing custom controls....................................................................................................................................................76
Receiving a drop event..................................................................................................................................................77
6
Custom Elements ....................................................................................................................... 78
Overview..........................................................................................................................................................................................78
Tags for creating custom elements .................................................................................................................................78
Defining A Custom Element.....................................................................................................................................................79
Redefining Tags Locally.................................................................................................................................................79
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
Multiple Inspectors................................................................................................................................................................88
The document's undo history ...........................................................................................................................................89
Creating the undo object....................................................................................................................................................89
Initializing the undo object ................................................................................................................................................89
Adobe GoLive CS2 SDK
5