Adding Palette Entries To A Customized Tab; Defining The Appearance Of A Custom Element - Adobe GoLive CS2 Programmer's Manual

Hide thumbs Also See for GoLive CS2:
Table of Contents

Advertisement

SDK Programmer's Guide
If you omit the order attribute, the default value is 30000 , which places your entry group at the end of all
existing entries.

Adding palette entries to a customized tab

When you specify a unique name for the palette group, it creates a new object type in the Objects palette.
When you are creating a new tab:
The display string pops up when the mouse pointer pauses over this type.
The picture specifies the icon for the new type. GoLive automatically scales this picture to 12x12
pixels, but it is best to supply a picture of the correct size. The value is the name of the corresponding
<img> tag. If you are adding elements to a predefined tab, omit this attribute.
The taborder specifies where this type goes, in relation to the existing types.
Types are sorted by taborder value from least to greatest, with higher values appearing to the right. If
you are adding elements to a predefined type, omit this attribute. For a listing of all taborder values
used by the built-in types, see
Reference.
When you add entries to a custom object type, the entries appear in the order in which they are defined; if
you supply an order attribute, it is ignored.

Defining the appearance of a custom element

When the user drags a custom element from the Objects palette to a GoLive document window, GoLive:
Inserts the contents of the <jsxpaletteentry> tag for this element into the document
Creates a
Your extension must define and register event handlers with the box object to initialize, draw, resize, and
inspect the custom box. You can specify the element's appearance in Layout view using a predefined
image, or by drawing it with drawing utility functions.
Appendix A, "Object Palette Sort Order
box Object
to manage the visual representation of the custom element in the Layout view.
Adobe GoLive CS2 SDK
Custom Elements
in the GoLive CS2 SDK Programmer's
82

Advertisement

Table of Contents
loading

Table of Contents