Registering a Custom Data Module in Delphi (XE)
delphi
Solution
If all you want to do is to have published properties show up in the `Object Inspector`, then as I understand from Marco's book, you can pass `TCustomModule` as the custom module class. It will surface all published properties.
Problem
I'm want to add a published property to a DataModule in Delphi XE such that the property shows in the object inspector. I am across the basic details but am stuck at the point where I need to register the custom module (in a design-time package). All of the help that I can find seems to refer to older versions of Delphi. I believe I need a line like this below in the Register procedure: RegisterCustomModule(TMyForm , TDataModuleDesignerCustomModule); However, the correct value for the second parameter of type TCustomModuleClass eludes me. Any ideas?