Gadget Size Syntax
- Last UpdatedFeb 08, 2023
- 2 minute read
The full syntax for gadget size (width and height) is as follows:
|
>-- <vwid> -- WIDth --+- val --> | +- TO --+- MIN -. | +- CEN -| | '- MAX -'-+- <gname> -. .---<---. | +-- FORM ---| / | | '-----------'-+- * val -+--> | +- + --. | '- - --+--- val ---. | +-- HDIST --| | '- PADDING -'--> +- <gname> -. .---<---. | |/ | '-----------+- * val -+--> +- + --. '- - --+--- val ---. +-- HDIST --| '- PADDING -'--> >-- <vhei> -+- HEIght -. +- LENgth -| '- LINes --+- val --> | +- TO --+- MIN -. | +- CEN -| | '- MAX -'-+- <gname> -. .---<---. | +-- FORM ---| / | | '-----------'-+- * val -+--> | +- + --. | '- - --+--- val ---. | +-- VDIST --| | '- PADDING -'--> +- <gname> -. .---<---. | |/ | '-----------+- * val -+--> +- + --. '- - --+--- val ---. +-- VDIST --| '- PADDING -'--> |
Where:
-
val is a real value
-
<gname> is a gadget dot-name such as .gadgetA
-
MIN, CEN, MAX refer to the gadget or FORM limits
-
HDIST and VDIST are the horizontal and vertical auto-placement increments for the layout path
-
PADDING is the extra spacing that F&M adds to left, right, top and bottom of a frame or the form.
The following example is valid syntax, which could be used to construct a frame .fr2 within an existing frame .fr1 (note that the space before and after the * is mandatory):
Frame .fr2 ... wid to max.fr1 * 0.5 + hdist hei to max.fr1 * 0.5 - padding