Sign in Join
FPDoc Onlineexperiment

TMenuItem.OnClick property

Member of TMenuItempublishedIn unit Menus

Event handler signalled to perform the actions needed when the menu item is executed.

Declaration

pascal
property OnClick: TNotifyEvent read FOnClick write FOnClick;

Description

OnClick is a TNotifyEvent property with the event handler signalled when the menu item is executed. OnClick is signalled from the Click method (when assigned) if the menu item is Enabled. OnClick is not signalled (even when assigned) if the menu item has an Action with an OnExecute event handler; the action is used instead.

OnClick (or OnExecute in an action) occurs after values in AutoCheck and Checked has been examined and optionally updated in the Click method.

See also

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