Page tree
Skip to end of metadata
Go to start of metadata

The Menu control allows you to create special switches that open a menu. This menu is filled with the available values delivered by the connected parameter. You can choose to open a tree menu control instead of the the standard menu, which is helpful when the number of available options increases. The menu itself can show a bitmap for its off state and the hover state, but it can also work without any bitmaps. Often, it is used in combination with a dedicated background image and a text control that shows the selected value. Menu and text controls are connected to the same parameter.

 

On this page:

PropertyDescription
NameThe name of the Menu.
Position/Size
Position and Size of the element in pixels.

Pos x, Pos y, Width, Height (Pos = Position of upper left corner)

Attach
  • Left: If the parent is resized, the control remains attached to left edge, with the specified ratio.
  • Right: If the parent is resized, the control moves relatively to the right edge, with the specified ratio.
  • Top: If the parent is resized, the control remains attached to top edge, with the specified ratio.
  • Bottom: If the parent is resized, the control moves relatively to the bottom edge, with the specified ratio.
  • Left + Right: If the parent is resized, the control is resized horizontally relatively to the left and right edges, with the specified ratio.
  • Top + Bottom: If the parent is resized, the control is resized vertically relatively to the top and bottom edges, with the specified ratio.
Tooltip
Text that appears as a tooltip when the mouse hovers over the element.
Value
Drag and drop a HALion parameter onto this text field to establish a connection. The assigned parameter will be displayed.

Alternatively, you can export the property, which can then be used as a template parameter on a template instance.

Style
  • Popup: If this option is activated, a tree menu is displayed instead of the standard menu.
  • Hover: Shows a dedicated bitmap when hovering over the menu.
  • Shaped: The control only reacts when you click the visible pixels, that is, the pixels with an alpha value > 0.
  • Scalable: Activate this option if you want to be able to resize the switch. In that case, the assigned bitmap resources are resized according to the scale mode that is defined for the bitmap resource.
  • Checkable: Activate this option to show a check mark for the selected menu item. Deactivate this option if you want to be able to use a menu entry, for example, to call a script function. In this case, no check mark is wanted, and the same menu item can be clicked repeatedly.
Bmp Off
Allows you to assign the bitmap that is used for the off state.
Bmp Hover
Allows you to assign the bitmap that is used for when the mouse is hovering over the control.
  • No labels

1 Comment