/ HALion Developer Resource / HALion Macro Page / Controls /

Label

Description

Labels are intended to display text that names elements such as Knobs, Text fields, etc. A Label can either use one of the available system fonts or a custom font for more decorative text styles, depending on the selected font resource.

Properties

PopertyDescription
NameThe name of the element. This name will be displayed in the GUI Tree.
Position/SizePosition X, Position Y, Width, Height: Position and size of the element in pixels. Position X/Y defines the position of the upper left corner.
AttachDefines how an element behaves when its parent element is resized. You can set the following parameters:
  • Left: If the parent element is resized, the element remains attached to left edge, with the specified ratio.
  • Right: If the parent element is resized, the element moves relatively to the right edge, with the specified ratio.
  • Top: If the parent element is resized, the element remains attached to top edge, with the specified ratio.
  • Bottom: If the parent element is resized, the element moves relatively to the bottom edge, with the specified ratio.
  • Left + Right: If the parent element is resized, the element is resized horizontally relatively to the left and right edges, with the specified ratio.
TooltipText that appears as a tooltip when the mouse hovers over the element.
FontAllows you to select which Font resource to be used to display the text.
AlignmentDefines how the text is aligned. You can choose from the following settings:
  • Align Left: Aligns the text to the left side.
  • Align Center (Horizontal): Aligns the text to the horizontal center.
  • Align Right: Aligns the text to the right side.
  • Align Top: Aligns the text to the top.
  • Align Center (Vertical): Aligns the text to the vertical center.
  • Align Bottom: Aligns the text to the bottom.