I’m creating a custom Delphi component (like a TButton) and want the IDE to generate an OnClick event handler when the component is double-clicked in the Form Designer. However, I’m unsure how to implement this functionality programmatically.
How can I configure my custom component so that double-clicking it in the Delphi IDE automatically create an OnClick skeleton event handler?