Customizing the metamodel > Keywords for USRPROPS > LAYOUT
  
LAYOUT
The LAYOUT keyword specifies the layout of properties in a diagram, symbol, or definition dialog.
Note The Symbol dialog is included as the last tab of a Definition dialog.
In the LAYOUT command’s opening and closing brackets, use arguments to specify the layout of all properties called out under that LAYOUT command. Specify how many columns the properties of the dialog should be laid out into, and how the properties should be aligned.
You can have more than one LAYOUT command specified for a Diagram, Symbol, or Definition dialog. You can specify a LAYOUT command for an entire dialog, and/or override it in each GROUP in a dialog, or in each tab (CHAPTER) in a dialog.
Syntax
LAYOUT
{ [ ALIGN BODY | ALIGN LABEL | ALIGN OVER ]
[ PACK | TAB ] [COLS number] [JUSTIFY]
}
Example
In the following example, all properties in the object’s symbol dialog are laid out in two columns.
SYMBOL "Object" IN "Sequence"
{
LAYOUT { COLS 2 ALIGN OVER }
PROPERTY "Package"
{ EDIT OneOf "Package" READONLY }
PROPERTY "Class"
{ EDIT OneOf "Class" KEYED BY { "Package", Name }
REQUIRED READONLY }
...}
The LAYOUT { ALIGN OVER } command works only when it is under a Chapter with a name as shown here:
Diagram "SMSDIAGRAM"
{
Chapter "My Properties"
LAYOUT { ALIGN OVER }
PROPERTY "SMSVERSION" {ZOOMABLE EDIT TEXT LENGTH 250 LINES 3}
}
See also
ALIGN
BODY
LABEL
OVER
PACK
TAB
COLS, COLUMNS
JUSTIFY
Keywords for USRPROPS