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

Hull and Outfitting

AT Syntax

  • Last UpdatedFeb 08, 2023
  • 1 minute read

The AT syntax is used to define the position of a gadget’s origin within a form. The position may be specified absolutely (in form layout grid units) or relative to the extremities of existing gadgets, or relative to the size of the form and the gadget.

The rest of the Forms and Menus syntax is described in Software customization Reference Manual: refer to that manual for further information, in particular about conventions used in the syntax graphs. The AT syntax graph is the easiest way of illustrating all the possible options, and so it is included here:

>-- AT --+- val -- val ----------------------------.

         +- X val ---------------------------------|

         +- XMIN -.                                |

         +- XCEN -|                                |

         +- XMAX -+- <fgrel> -.                    |

         '--------'-----------+- Y val ------------|

                              +- YMIN -.           |

                              +- YCEN -|           |

                              +- YMAX -+- <fgrel> -|

                             '--------'-----------'--->

Figure 17:10. Syntax Graph -: Gadget positioning

where <FGREL>, shown below, sets the gadget position relative to another gadget or the form’s extent. For example, it can be used to position a gadget half-way across the width of a form:

>----+- <gname> -.

     +-- FORM ---|

     '-----------+- * val --.

                 +- + val --|

                 +- - val --+- + val * SIZE -.

                 |          +- - val * SIZE -|

                 '----------+- + SIZE -------|

                            +- - SIZE -------|

                            '----------------'--->

Figure 17:11. Syntax Graph -: Relative Placing of Gadgets

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