Positioning Relative to a Previous Gadget
- Last UpdatedNov 12, 2025
- 2 minute read
-
To specify the position of a new gadget relative to an extremity of the last placed gadget, use the AT keyword as follows:
toggle .OnOff AT XMIN YMAX+1
This positions the origin of the new toggle gadget with respect to the extremities of the last-created gadget (indicated by the absence of an explicit gadget name in the AT command). The new gadget’s origin is at the coordinates (XMIN, YMAX+1) of the last gadget:

Figure 17:7. Positioning Relative to Specific Previous Gadgets
The command
toggle .OnOff AT XMIN gadget1 YMAX gadget1+1
positions a new gadget relative to extremities of the previous gadget gadget1. The effect is similar to that illustrated above.
toggle .OnOff AT XMIN gadget1-2 YMAX gadget1+1
positions the new gadget to the left of gadget1 as the specified X offset is negative.

Figure 17:8. Newly Placed Gadget
Note: The new gadget need not be adjacent to the referenced gadget. You can omit the X or Y co-ordinate. The co-ordinates can be set relative to different previous gadgets.