Vcl.Menus.TMenuItem.Default

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Default: Boolean read FDefault write SetDefault default False;

C++

__property bool Default = {read=FDefault, write=SetDefault, default=0};

Properties

Type Visibility Source Unit Parent
property published
Vcl.Menus.pas
Vcl.Menus.hpp
Vcl.Menus TMenuItem

Description

Specifies whether the menu item is invoked when the parent item is double clicked.

Set Default to specify whether a menu item is the default item in a submenu. Default menu items are executed when the parent item is double-clicked, allowing users to avoid navigating the submenus that contain them.

The default item appears in boldface. A submenu can have only one default item. If the Items list of the parent menu item already contains a default menu item, setting the Default property to true sets the Default property of the previous default item to false.

See Also