Recent

Author Topic: Can I reuse the ImageList Editor at run-time?  (Read 378 times)

EganSolo

  • Full Member
  • ***
  • Posts: 213
Can I reuse the ImageList Editor at run-time?
« 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.

PascalDragon

  • Hero Member
  • *****
  • Posts: 2985
  • Compiler Developer
Re: Can I reuse the ImageList Editor at run-time?
« Reply #1 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.

EganSolo

  • Full Member
  • ***
  • Posts: 213
Re: Can I reuse the ImageList Editor at run-time?
« Reply #2 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