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

TMenuItem.RethinkLines

Performs actions needed to update the visibility of child menu separators and signal the OnChange event handler for the changes.

Declaration

Source position: menus.pp line 296

public function TMenuItem.RethinkLines: Boolean;

Function result

Returns True if the visibility of child menu item(s) was changed in the method.

Description

RethinkLines calls the InternalRethinkLines method to toggle the visibility of examine or update the visible child menu items. If any of the child Items was changed, the MenuChanged method is called to signal the OnChange event handler (when assigned) and rebuild (re-display) the submenu.

Version info

Added in LCL version 4.0.

See also

TMenuItem.Items

  

Provides indexed access to the child menu items for the current class instance.

TMenuItem.MenuChanged

  

Signals the OnChange event handler (when assigned) and optionally rebuilds child menu items.

TMenuItem.InternalRethinkLines

  

Indicates whether child menu Items need to be updated to hide leading, trailing, or adjacent separators.

TMenu.OnChange

  

Event handler signalled when a menu item in Items has been changed.

TMainMenu.OnChange

  

Event handler signalled when a menu item has been changed.


Version 4.0 Generated 2025-05-03 Home