From c85d53f86aa4dbb01b5c718ca8b8329f5c0137ed Mon Sep 17 00:00:00 2001 From: dsiders Date: Tue, 10 Sep 2024 20:25:33 +0100 Subject: [PATCH] Docs: LCL/menus. Updates the TMenuItem.InternalRethinkLines topic for changes in 3afd9c57. Issue #41028. --- docs/xml/lcl/menus.xml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/docs/xml/lcl/menus.xml b/docs/xml/lcl/menus.xml index 8a621cbc52..ca00228b7d 100644 --- a/docs/xml/lcl/menus.xml +++ b/docs/xml/lcl/menus.xml @@ -1284,23 +1284,31 @@ the Windows platform only. -Indicates whether child menu Items need to be updated to hide leading or -trailing separators. +Indicates whether child menu Items need to be updated to hide leading, +trailing, or adjacent separators.

InternalRethinkLines is called from the RethinkLines and -CheckChildrenHandles methods. The return value indicates whether the visibility -of child menu items which are leading or trailing separators has been updated. +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.

-True indicates that the visibility for one or more of the child menu -items was changed in the method. +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. @@ -1308,6 +1316,7 @@ Added in LCL version 4.0. +