How It All Works
- Last UpdatedNov 12, 2025
- 2 minute read
The position of a new gadget relative to the preceding one depends on the combination of the current path, distance increment and alignment.
For horizontal paths, LEFT and RIGHT, the HDIST and VALIGN apply.
For vertical paths, UP and DOWN, the VDIST and HALIGN apply.
The following diagram shows the valid alignment settings for paths Right, Left, Down and Up, with clearance distances D grid units in each direction.

Figure 17:5. Effect of Path and Alignment Settings
Combinations of path, distance and alignment commands allow you to set up correctly aligned rows and columns of gadgets without the need to calculate any grid coordinates.
For example, the following command sequence gives the layout shown in Figure 17:6 Example Layout of Gadgets:
|
button .But1 PATH down |
$* default placement |
|
HALIGN centre VDIST 2 |
|
|
paragraph .Par2 width 3 height 2 |
$* auto-placed |
|
toggle .Tog3 |
$* auto-placed |
|
PATH right HDIST 3.0 VALIGN bottom |
|
|
list .Lis4 width 2 height 3 |
$* auto-placed |
|
PATH up HALIGN right |
|
|
paragraph .Par5 width 3 height 3 |
$* auto-placed |

Figure 17:6. Example Layout of Gadgets