Positioning Relative to a Previous Gadget
- Last UpdatedOct 29, 2024
- 1 minute read
Relative to the limits of the last placed gadget:
toggle .OnOff AT XMIN YMAX+1
places the new gadget's placement point at (XMIN, YMAX+1), below the last gadget:

Relative to the limits of a named previous gadget:
toggle .OnOff AT XMIN.gadget1 YMAX.gadget1+1
has similar effect to that illustrated above.
toggle .OnOff AT XMIN.gadget1-2 YMAX.gadget1+1
places the new gadget left and down from gadget1.

Allowing for the new gadget's size:
toggle .OnOff AT XMAX.gadget1-SIZE YMAX.gadget1+0.5
right aligns the new gadget below gadget1.
Note:
The new gadget need not be adjacent to the referenced gadget.
The co-ordinates can be set relative to different previous gadgets.
You can omit the X or Y co-ordinate, which will then be auto-placed for that co-ordinate.