TMenuItem.InternalRethinkLines function
Indicates whether child menu Items need to be updated to hide leading, trailing, or adjacent separators.
Declaration
function InternalRethinkLines(AForced: Boolean): Boolean; virtualArguments
AForced | Not used in the current implementation. |
Function result
Returns Trueif the visibility for one or more of the child menu items was changed in the method.
Description
InternalRethinkLines is called from the RethinkLines and
CheckChildrenHandles methods. When AutoLineReduction is enabled, it visits each
of the child menu Items and checks whether adjacent menu items are configured
as menu separators (IsLine =
True). The visibility for an adjacent menu
separator is updated based on the visibility of its predecessor. If the first
is visible, the second is hidden - and vice versa.
The return value indicates whether the visibility of child menu items has been updated. True indicates that the visibility for one or more of the child menu items was changed in the method.
To maintain compatibility with the Delphi VCL behavior, all menu separators are visible when GetAutoLineReduction returns False.
No actions are performed in InternalRethinkLines at design-time, and the return value is False.
Added in LCL version 4.0.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
