Purpose | With pos you can shift fields, field groups, pushbuttons, radiobuttons, check boxes and tables to new positions.
|
Examples | pos F[Business area.] (10,50)
pos G[Client specific configuration] G[Client specific configuration]+(10,0)
pos #[12,60](12,50)
pos T[ORDERS](10,20)
|
Format | pos [screen element] (position)
In the case of fields both the field name and the value or the input field are shifted. In the case of field groups all elements within the group and the group box itself are shifted. |
Additional options |
-Triple | Applicable for input/output fields with an additional text field behind the entry field. All 3 fields are shifted. |
-Value | Applicable for input/output fields. Only the field value (entry field) is shifted. |
-Text | Applicable for input/output fields. Only the field text is shifted. |
width= | Applicable for special controls X[...], e.g. a grid control: sets a new control width |
height= | Applicable for special controls X[...], e.g. a grid control: sets a new control height |
|
Tips & Tricks |
- If you wish to move all fields of a field group except one, you can first remove this field from the box using pos and then move the rest.
- If you specify the position within a script command symbolically by another screen element and shift this screen element to a new position using pos, then its old position is valid for all script lines before the pos command, and the new position for all following script lines. Example:
text F[Account]+(0,50) “Text 1″ pos F[Account] F[Account]+(1,0) text F[Account]+(0,50) “Text 2″
The two text strings “Text 1“ and “Text 2″ appear in two lines one under the other.
- If you want to swap over the position of two fields, it is not correct to do it in the following way:
pos F[Account] F[Currency]
pos F[Currency] F[Account] Instead you must use absolute coordinates in the 2nd pos command, or refer to a fixed screen element.
- See GuiXT tutorial 1 Change screen layout for details.
|