[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Menus' (#lcl)

# TMenuItem.Default

Indicates if the menu item is the default selection.

## Declaration

Source position: menus.pp line 329

`published property TMenuItem.Default : Boolean read FDefault write SetDefault default False;`

## Description

When Default is set to True, the menu item is normally displayed using a bold typeface. The default value for the property is False and indicates that the menu item is not the default menu item.

Only one of the entries in Items for a given TMenuItem instance can be the default menu item. Changing the value for the Default property clears the previous default item prior to setting the new default item. In addition, MenuChanged is called to signal the OnChange event handler (when assigned). This allows a parent menu item to be updated or rebuilt after the default item has been changed.

Remark: | The Default property is not supported for the GTK2, GTK3, QT4, QT5, and QT6 widgetsets.

## See also

TMenuItem.Menu |  | Menu where the menu item is displayed.
TMenuItem.Items |  | Provides indexed access to the child menu items for the current class instance.
TMenuItem.MenuChanged |  | Signals the OnChange event handler (when assigned) and optionally rebuilds child menu items.
TMenu.Items |  | Contains the menu items displayed on the menu.