Setting Up the Gadget’s Tagwidth (TEXT, TOGGLE and OPTION): <fgtagw>
- Last UpdatedNov 07, 2024
- 1 minute read
The TAGWIDTH specifies the size of the gadget’s tag field in grid width units, including any padding space, regardless of the actual tag string. TAGWIDTH is not needed for gadgets with an explicit area specification (width and height, lines or length). FRAME, LIST, SELECTOR, TEXTPANE, and PARAGRAPH can always force an explicit width.
The syntax graph <fgtagw> defines the tag specification.
>-- <fgtagw> --+- TAGWIDth val -+-------------.
‘----------------‘-- tagtext -‑‘-->
The <fgtagw> graph supports both the simple ‘tagtext’ setting and/or the specification of the maximum width of any tag.
If the tag width is not explicitly given then it is assumed to be the number of characters in the ‘tagtext’ string multiplied by the horizontal grid size (the notional character width for the font).
You can specify the tag width without specifying any 'tagtext' at definition time; this can be added at run-time.