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

Hull and Outfitting

Tag Width

  • Last UpdatedFeb 08, 2023
  • 2 minute read

All gadgets have a TAG attribute which may be set in the gadget definition or modified after the gadget has been defined. The size of a gadget is dependent on whether its tag is specified, whether it is displayable, and its value at the time of definition.

  • SLIDER, PARAGRAPH, G3D and G2D do not display their tag at all and so it doesn't affect the gadget size.

  • FRAME gadgets display their tag as an integral part of their data-box, and so the tag, if specified, contributes to the gadget height (but not the width).

  • LIST, SELECTOR and TEXTPANE gadgets display their tag above the data-box, so if specified, it affects the gadget height (but not the width).

  • OPTION, COMBO, TEXT, TOGGLE and RADIO_BUTTON gadgets display their tag horizontally in-line with the decoration and/or data-box and so, if specified, affects the width but not the height.

  • BUTTON gadgets display their tag inside the decoration, and there is no data-box, so width and height directly set the gadget-box size independently of the actual tag string.

  • ALPHA gadgets (not in FRAMEs) display their tag above the data-box, so it affects the gadget height but not the width. ALPHA views within FRAMES do not display their tag at all, so it has no effect on the size.

Gadgets with an in-line tag support a TagWidth keyword, which allows the tag width to be specified in horizontal grid units.

toggle .tog1 tagwid 9 |BBC news 24|

toggle .tog2 tagwid 9 |BBC 1|

This is only necessary to:

  • Reserve space for a tag, which is to be set or modified later.

  • Ensure alignment of the data-boxes of two or more such gadgets.

Otherwise the tag will be sized directly by the gadget's tag text.

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