Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Hull and Outfitting

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:

  1. val is a real value

  2. <gname> is a gadget dot-name such as .gadgetA

  3. MIN, CEN, MAX refer to the gadget or FORM limits

  4. HDIST and VDIST are the horizontal and vertical auto-placement increments for the layout path

  5. 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

TitleResults for “How to create a CRG?”Also Available in