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

TMenuItem.AutoLineReduction

Indicates the method used to perform line reduction for the menu item and optionally for its child Items.

Declaration

Source position: menus.pp line 323

published property TMenuItem.AutoLineReduction : TMenuItemAutoFlag
  read FAutoLineReduction
  write SetAutoLineReduction
  default maParent;

Description

AutoLineReduction is a TMenuItemAutoFlag property which controls if redundant separators on child Items are automatically hidden on the submenu. Line reduction causes leading, trailing, or adjacent menu separators to be hidden.

maAutomatic and maParent cause redundant separators to be maintained by the Parent menu item (or menu). Use maManual if line reduction is performed only when the RethinkLines method is explicitly called. The default value for the property is maParent and causes the line reduction setting in the Parent to be applied to the menu item.

See TMenuItemAutoFlag for more information about the valid values for the property.

Changing the value for the property causes the MenuChanged method to be called to signal the OnChange event handler and to build (display) the menu and its child Items at run-time.

Version info

Added in LCL version 4.0.

See also

TMenuItemAutoFlag

  

Represents line reduction modes available for menu items.

TMenu.AutoLineReduction

  

Indicates the method used to perform line reduction for the menu and optionally for its child Items.

TMenuAutoFlag

  

Range type which represents the valid TMenuItemAutoFlag values for TMenu instances.


Version 4.0 Generated 2025-05-03 Home