I have a VCL control for which I do not have the source that does not have a PopupMenu property and associated event(s). How can I add this?
The control (per the documentation) inherits from TCustomControl, which inherits from TWinControl.
Looking through the Delphi VCL source it seems to involve handling the WM_CONTEXTMENU message.
I can create the control at runtime, so it doesn't have to support design-time functionality if that makes it simpler.
Delphi 10.3