Jump to content
Ian Branch

3rd party library not showing in a Form.

Recommended Posts

Posted (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 by Ian Branch

Share this post


Link to post
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
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

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
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:
image.thumb.png.3c6ffe8651464efa72b90998ac6af9c4.pngimage.thumb.png.4d6564ad59b72362bad6286b64be81ca.png

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×