object-inspector

Access DataModule's event from another Form (delphi design-time)

こ雲淡風輕ζ 提交于 2019-12-13 09:11:50
问题 I would like to know if there's any way to link a component's event (As TButton.OnClick ) to a procedure defined in a datamodule (At design-time). At the moment, I'm doing this at runtime: MyButton.OnClick := MyDataModule.MyOnClickEvent; The goal would be that to get MyDataModule.MyOnClickEvent proposed in the dropdown lists in the Object Inspector Window. Thanks in advance to all who will share their knowledge :D Note1: Here's a similar question, but there are no informations about how to