justify

Determines the placement of text within the containing item.

Syntax

   <justify>alignment</justify>
Table 1. justify parameters
Parameter Type Description
alignment left Text is placed so that it is flush with left edge of item.
  right Text is placed so that it is flush with right edge of item.
  center Text is centered in item.
  lead Aligns Left-To-Right text left, and Right-To-Left text right so that it is flush with side at which you start reading.
  trail Aligns Left-To-Right right and Right-To-Left left so that it is flush with side at which you start reading.

Available in

button, combobox, field, label, popup, richtext

Example

This sample aligns the text in the center of the item.

   <justify>center</justify>

Usage details

  1. Default: left, except for popup which has a default value of center.
  2. The built-in labels (label option) for items do not support a justify option.
  3. If you center or right justify a field with a scrollhoriz of never, the field will wordwrap if you type beyond the edge of the field. However, the new line of text will continue to be right or center justified.