Autolayout Of Localized Controls - Adobe GoLive CS2 Programmer's Manual

Hide thumbs Also See for GoLive CS2:
Table of Contents

Advertisement

SDK Programmer's Guide

Autolayout of Localized Controls

GoLive translates UI strings to the language for the current locale of the computer it is running on. For
details, see
languages, this can affect the appearance of your control layout.
You can include the <jsxlayoutline> tag in a window or panel definition to enable the autolayout
feature for that window. When autolayout is enabled, GoLive automatically adjusts the sizes and locations
of controls to allow for different string lengths in different languages. It can resize static text fields to grow
or shrink with changes in language, and move controls to accommodate other controls that have changed
size.
The <jsxlayoutline> tag defines a vertical line in the window. The specified location of the line is
shown as a red, dashed line in the figure, but is not actually displayed in GoLive. The controls on one side
of the line change size to allow for localized strings, and the controls on the other side change position to
accommodate the changes in the first group. By default, those on the left change size, and those on the
right change position.
layout line
The inspector for the <jsxlayoutline> tag is shown at the right of the figure. The attributes, x , y , and
length , define the position of the line in the window. If you set direction to true , the default behavior
is reversed: controls to the right of the line change size, and those to the left of the line change position.
Dynamic UI
Localization. Because the length of the string can be different in different
Adobe GoLive CS2 SDK
Windows and Controls
65

Advertisement

Table of Contents
loading

Table of Contents