Sign in Join
FPDoc Onlineexperiment

TMenu.DoChange procedure

Member of TMenuprotectedIn unit Menus

Performs actions needed when the specified menu item has been changed.

Declaration

pascal
procedure DoChange(Source: TMenuItem; Rebuild: Boolean); virtual

Arguments

Source

Menu item where the change occurred.

RebuildTrue to rebuild the child menu items.

Description

DoChange is a method used to perform actions need when the menu item in Source has been changed. The Rebuild parameter indicates that the hierarchy of child menu items in Source should be reconstructed.

DoChange signals the OnChange event handler (when assigned) using the menu instance, Source, and Rebuild as arguments.

DoChange is called from the MenuChanged method.

See also

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