delphi - Adding new property to TMS control "TAdvSmoothDock" but it doesn't appear in the Object Inspector -
I am trying to add a new property (images: TImageList) on TMS control "TAdvSmoothDock" but property doesn ' Object does not appear in the inspector
I have defined it as the following under "Published":
Published property: TImageList Read GetImages Write SetImages;
I can compile it but the property object does not appear in the inspector Delphi appears in the IDE when using control in code:
Like:
AdvSmoothDock1.Images: = ImageList1;
Currently I am using Delphi XE2 VCL.
Regards.
You need to recreate TMS packages that contain components, not just source code Change
The object inspector does not use code to detect the source to use. It uses RTTI (run-time type information) which is derived from the compiled version in the runtime package, in which component (or no runtime package is available in the design time package).
In the TMS component, open the source of that package in the IDE (package .dproj file), and create that package. Make sure it is viewing your version of the source rather than the normal TMS version, so your changes are used.
(To do this, of course, to make your descendant of TAdvSmoothDock the appropriate , insert it, put it in your own package which uses TMS, And never touch the TMS source code.)