PDA

View Full Version : How to use Icons in the LCL



WILL
10-11-2006, 07:54 PM
I've been playing with the LCL more than I have recently and I've been trying my darndest to try and figure out the Icon property of the TForm.

I've tried everything from BMPs, GIFs and ICO files semselves but none of these seem to either make A) the icon appear in the title bar icon of the window or B) show it's self in the compiled EXE files within Windows Explorer.

Any idea if I'm missing something or if this has not been yet implimented?

jdarling
10-11-2006, 11:12 PM
I only managed to get it to work with XPM files. Do some searching around the web and you can find a converter. Hopefully someone else shoots up a better answer :)

WILL
11-11-2006, 03:37 AM
Thanks Jeremy!

XPM files, huh? Wow... never heard of those to be honest. :?

What else uses them?

cragwolf
11-11-2006, 04:42 AM
Yeah, they're used in X Windows. Usually for icons (pixmaps we Linux heads call them). Open one in a text editor and you'll get a surprise. 8)