Customizing the metamodel > Keywords for USRPROPS > LABELPOS
  
LABELPOS
LABELPOS is a parameter of the PLACEMENT command that specifies exact placement of a property’s name (or label) on a diagram, symbol, or definition dialog. The LABELPOS command has two arguments:
the horizontal position (from the top of the dialog) in Windows units, and
the vertical position (from the left of the dialog) in Windows units.
Syntax
PLACEMENT
{ LABELPOS(4, 52) PROPPOS (horizontal-positioning, vertical-positioning)
PROPSIZE (width, height)
}
Example
In the following example, LABELPOS and PROPPOS have the same y coordinate (24). This means that the tops of their letters will both be 24 units from the top of the dialog: the label will be to the left of the control (not over it).
The difference between the PROPPOS x coordinate and the LABELPOS x coordinate (20 - 4 = 16) leaves plenty of room (16 -10 = 6 units) for the 10-character label name, which is “Table Name”, because it has to go to the left of the starting point of the property control’s starting position.
DEFINITION "My Definition"
{
PROPERTY "Table Name"
{ EDIT Text LENGTH 31
PLACEMENT { LABELPOS (4, 24)
PROPPOS (20, 24) PROPSIZE(150, 12)} }
}
See also
PLACEMENT
PROPPOS and PROPSIZE
PROPSIZE
FORMAT
Keywords for USRPROPS