Lazarus

Programming => LCL => Topic started by: EganSolo on February 24, 2021, 05:11:38 am

Title: Can I reuse the ImageList Editor at run-time?
Post by: EganSolo on February 24, 2021, 05:11:38 am
I've looked at the ImageList example programs and none of them seem to demonstrate how to use the image list editor at run time. I am speaking of the editor that pops-up when we double-click the ImageList component sitting on a form.

Is it possible to use that component in my own program? If so, could you please point me to the source code? I've scanned the Lazarus folder and looked into the LCL, components, designer, and ide folders. ImgList doesn't seem to contain it and without the specific name of the file, it's hard to find it :)

Thanks.
Title: Re: Can I reuse the ImageList Editor at run-time?
Post by: PascalDragon on February 24, 2021, 09:17:46 am
It isn't that hard to find: $lazarus/components/ideintf/imagelisteditor.pp (at least in 2.1).

Please note however that it has quite some dependencies on the IDE's designer interface.
Title: Re: Can I reuse the ImageList Editor at run-time?
Post by: EganSolo on February 24, 2021, 11:09:57 am
Thanks!
Actually, I skipped the intf folder thinking it was for, you know, Interfaces (silly me).
Thanks for the pointer.
I'll take a look and see if something could be extracted!
TinyPortal © 2005-2018