Sign in Join
FPDoc Onlineexperiment

TMenuChangeEvent procedure type

In unit Menus

Specifies an event handler signalled when a menu or menu item is changed.

Declaration

pascal
TMenuChangeEvent = procedure(Sender: TObject; Source: TMenuItem; 
 Rebuild: Boolean) of object

Arguments

Sender

Object for the event notification.

Source

Menu or menu item where the change occurred.

RebuildTrue to rebuild the menu item hierarchy.

Description

TMenuChangeEvent defines an event handler signalled when a menu or a menu item has been changed.

TMenuChangeEvent is the type used for the OnChange property in both TMenu and TMenuItem, and implemented in the TMenu.MenuChanged method.

See also

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