Sign in Join
FPDoc Onlineexperiment

TMainMenu.MenuChanged procedure

Member of TMainMenuprotectedIn unit Menus

Implements the OnChange event handler used for menu items in the class instance.

Declaration

pascal
procedure MenuChanged(Sender: TObject; Source: TMenuItem; 
 Rebuild: Boolean); override

Arguments

Sender

Object of the change notification.

Source

Menu item for the change notification.

RebuildTrue to rebuild the child menu items for the menu.

Description

MenuChanged is an overridden method in TMainMenu. It ensures that the CM_MENUCHANGED control message is forwarded to the WindowHandle (when assigned) where the menu is displayed. MenuChanged calls the inherited method prior to exit to signal the OnChange event handler (when assigned).

See also

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