TControl.WMContextMenu procedure
Handles a LM_CONTEXTMENU message for the control.
Declaration
procedure WMContextMenu(var Message: TLMContextMenu); messageDescription
No actions are performed in the method at design-time, or when the result code in Message has a non-zero value.
Calls DoContextPopup to signal the OnContextPopup event handler (when assigned). No additional actions are performed in the method if the context menu was displayed and executed in the OnContextPopup event handler.
Otherwise, the TPopupMenu instance in the PopupMenu property is displayed and executed by calling its Popup method.
The result code in Message is set to 1 if the context menu was displayed and executed in the method.
See also
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
