Ian Branch 128 Posted July 21 (edited) Hi Team, I have downloaded and installed SVGIconsImageList from GitHub. No issues there. The components are appearing in most of my Apps projects under the Design tab components except for one form in a project. A Datamodule. It is fine if/when I install SVGIconImageList via GetIt. What could be causing them to be missing from just the one form on the one project? It is complaining that Class TSVGIconImageCollection is not found. Regards & TIA, Ian Edited July 21 by Ian Branch Share this post Link to post
havrlisan 25 Posted July 21 6 hours ago, Ian Branch said: Hi Team, I have downloaded and installed SVGIconsImageList from GitHub. No issues there. The components are appearing in most of my Apps projects under the Design tab components except for one form in a project. A Datamodule. It is fine if/when I install SVGIconImageList via GetIt. What could be causing them to be missing from just the one form on the one project? It is complaining that Class TSVGIconImageCollection is not found. Regards & TIA, Ian The TDataModule has a published property ClassGroup, check if that's set to VCL (because TSVGIconImageCollection is VCL only). Share this post Link to post
Ian Branch 128 Posted July 21 2 minutes ago, havrlisan said: The TDataModule has a published property ClassGroup, check if that's set to VCL (because TSVGIconImageCollection is VCL only). This is the code for the Datamodule: unit dmImages; interface uses System.SysUtils, System.Classes, Vcl.BaseImageCollection, SVGIconImageCollection, GITLAKLib; type TdmI = class(TDataModule) SVGIC: TSVGIconImageCollection; end; var dmI: TdmI; implementation {%CLASSGROUP 'System.Classes.TPersistent'} {$R *.dfm} end. It is working fine as is att using SVGIconsImageList from GitHub. Ian Share this post Link to post
Ian Branch 128 Posted July 21 OK. {%CLASSGROUP 'System.Classes.TPersistent'} Didn't look right, so I changed it to; {%CLASSGROUP 'Vcl.Controls.TControl'} And it is happ now. I have no idea how/when it was et to System.Classes.TPersistent. 😞 Thanks for the prompt/pointer. Regards, Ian Share this post Link to post
havrlisan 25 Posted July 21 11 minutes ago, Ian Branch said: OK. {%CLASSGROUP 'System.Classes.TPersistent'} Didn't look right, so I changed it to; {%CLASSGROUP 'Vcl.Controls.TControl'} And it is happ now. I have no idea how/when it was et to System.Classes.TPersistent. 😞 Thanks for the prompt/pointer. Regards, Ian Great to hear that solved your problem. To clarify, changing the ClassGroup property changes that line of code you edited: Share this post Link to post
Ian Branch 128 Posted July 21 Noted. Again, I have never knowingly touched this. Share this post Link to post