[Lazarus] Loading icon from Application.Icon

Guionardo Furlan guionardo at gmail.com
Sat Jan 31 23:25:04 CET 2009


Windows XP SP3
FPC 2.2.2
Lazarus 0.9.26

Yes, when I insert an TTrayIcon in a form and define the icon,
everything is all right.
But, I need to dynamically create the ttrayicon and load the icon data
from a resource.
Now, I tested the LoadFromLazarusResource method (with the lazres
tool) and it worked.

Thanks

2009/1/31 Felipe Monteiro de Carvalho <felipemonteiro.carvalho at gmail.com>:
> Which operating system, fpc and lazarus versions?
>
> Does the example application work for you? It's in examples/trayicon
> and it loads the icon from the LFM (inside the executable)
>
> --
> Felipe Monteiro de Carvalho
> _______________________________________________
> Lazarus mailing list
> Lazarus at lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>



-- 
Timeo hominem unius libri
Cogito ergo sum - Carpe diem

[]s
Guionardo Furlan
http://guionardo.blogspot.com



More information about the Lazarus mailing list