Sign in Join
FPDoc Onlineexperiment

TMenu.AutoLineReduction property

Member of TMenupublishedIn unit Menus

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

Declaration

pascal
property AutoLineReduction: TMenuAutoFlag read GetAutoLineReduction write SetAutoLineReduction default maAutomatic;

Description

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

maAutomatic causes redundant separators to be automatically removed for the menu. The default value for the property is maAutomatic and causes the line reduction top be performed automatically. Use maManual if line reduction is performed only when the RethinkLines method in a child menu item is explicitly called.

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

The value in AutoLineReduction is used by child menu Items when their AutoLineReduction property is set to maParent or maAutomatic.

Added in LCL version 4.0.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.