Specifying Gadget Size Relative to a Previous Gadget
- Last UpdatedFeb 08, 2023
- 1 minute read
A gadget's width and/or height components can be specified relative to the size of previously placed gadgets, for example,
frame fr1 |Frame 1| ... Width.gad6 Height
The width of fr1 is set to the width of gadget gad6 and its height is set to the height of the last (most recently defined) gadget, where the meaning of Size is gadget type dependent as explained in the previous section.
A gadget's width and/or height components can also be specified as the distance from its position co-ordinate to the positional extent of another gadget, for example,
frame fr2 |Frame 2| ... Width to min.fr1 Height to max
The width of fr2 extends from its specified (or implied) X-position to the XMIN-position of gadget fr1, and its height extends from its specified (or implied) Y-position to the YMAX-position of the most recently defined gadget. Note that the positional extents always refer to the full gadget box.