Menu

Expandable list with list entries, only one of which can be activated.

Some control elements contain a list that can be opened by clicking or touching and contains entries for selection.

The following properties are available in the "Menu" category to configure the selection list:

Items (Collection)

Defines the entries for the selection list. To add entries to the selection list or remove existing ones, call up the Collection Editor via the E l l i p s e button behind the "Items" property.

Subject control: SelectBox

ItemStyle

Defines the style for all list elements in the selection list.

MenuPlacement

Defines the position of the selection list. If there is not enough space for the entire selection list, the height of the selection list is automatically reduced and a scroll bar is displayed in the selection list.

  • Left

    The selection list is displayed to the left of the control element containing it.

  • Top

    The selection list is displayed above the control element containing it.

  • Right

    The selection list is displayed to the right of the control element containing it.

  • Bottom

    The selection list is displayed below the control element containing it (default setting).

  • Car

    The selection list is automatically positioned so that it can be displayed in full size. The search for a suitable position is carried out in the following order: "Top", "Bottom", "Left", "Right".

  • Autohorizontal

    The selection list is automatically positioned so that it can be displayed in full size. However, only horizontal positions are permitted. The search for a suitable position is carried out in the following order: "Left", "Right".

  • Autovertical

    The selection list is automatically positioned so that it can be displayed in full size. However, only vertical positions are permitted. The search for a suitable position is carried out in the following order: "Top", "Bottom".

MenuBorderRadius

Defines the thickness of the rounding of the corners for the frame of the selection list.

MenuBorderStyle

Defines the type of frame for the selection list.

MenuBorderWidth

Defines the thickness of the frame line of the selection list.

MenuHeight

Defines the height of the selection list.

MenuItems (Collection)

Defines the entries for the selection list. To add entries to the selection list or remove existing ones, call up the Collection Editor via the E l l i p s e button behind the "MenuItems" property.

Subject control: DropDownBox

MenuWidth

Defines the width of the selection list.

MenuMargin

Defines the outer distancesfor the selection list, i.e. between the edge of the selection list and its parent element as well as its neighbouring elements.

MenuPadding

Defines the internal spacingfor the selection list, i.e. between the edge of the "Menu" element and its subordinate element, the "MenuContainer".

MenuShadow

Defines the type of shadow for the selection list.

SelectedIndex

Specifies the index (position) of the entry that is displayed as the selected entry in the control element. Specifying -1 means that no entry is selected. Specifying 0 means that the first entry is selected. The index is specified in the Collection Editor before the respective entry.

  • This property is only used for the preview in the Designer and has no effect at runtime.

I n d e x S e l e c t B o x I t e m

Index in the Collection Editor

Affects these controls:

DropDownBox, SelectBox, TabMenuButton