Customizing the metamodel : Keywords for USRPROPS : LABEL
  
LABEL
The LABEL command is used for two purposes.
Purpose 1: ALIGN command argument
LABEL is one of the arguments of the ALIGN command. It is used to align all controls one space to the right of the widest label in that column. (Contrast this with the ALIGN OVER keyword pair, which places the name over the property.)
Example
Definition "My Definiition"{CHAPTER "My Chapter"
LAYOUT { COLS 1 ALIGN LABEL }
PROPERTY "My Property 18"{ EDIT Text Length 10}
PROPERTY "My Property 19"{ EDIT Text Length 10}
PROPERTY "My Property 20"{ EDIT Text Length 10}
PROPERTY "My Property 21"{ EDIT Text Length 10}
PROPERTY "My Property 22"{ EDIT Text Length 10}
PROPERTY "My Really Long Property 23"{ EDIT Text Length 10}
}
In the example above, the control for "My Really Long Property 23" is a text box placed one space to the right of the label. All other text-box controls for other properties on the dialog are lined up with this control.
See also
ALIGN
BODY
OVER
Purpose 2: Change the name of tabs, groups and properties
LABEL is used to relabel the name of tabs (chapters), groups, or properties in a dialog. You cannot remove a property name which has been defined in SAPROPS. However you can modify the text that is displayed for the property by using the LABEL command in USRPROPS.TXT.
Example
DIAGRAM "Data Flow Diagram" {
PROPERTY "Event Label Prefix"
{ EDIT Text LENGTH 10 }
PROPERTY "Key Letters"
{ EDIT text LENGTH 10 LABEL "Process Prefix" } ..}
Adding the code above to USRPROPS.TXT (and reopening your encyclopedia) causes the words "Processing Prefix" to be displayed as the label of the "Key Letters" control.
Renaming a group in a definition
You can use the LABEL command to rename a Group. If you specify an empty text string (" "), no words will appear for the Group box.
Example
DEFINITION "Attribute" {
GROUP "other stuff" LABEL "" }
To rename a CHAPTER, see the CHAPTER command.