[Lazarus] Setting a cursor from resource

Zaher Dirkey parmaja at gmail.com
Thu Mar 24 12:47:53 CET 2011


2011/3/24 patspiper <patspiper at gmail.com>

>  On 03/24/2011 01:05 PM, Zaher Dirkey wrote:
>
>  2011/3/24 patspiper <patspiper at gmail.com>
>
>> You can add the contents of a lrs file
>
>
> How without using a converter (image -> lrs)
> I like to have this, in unit that register my controls
>
> {$r 'myimage.png'}
>
> $R needs res files whereas Lazarus understands lrs files. In your case, you
> can just load the image at runtime:
> Image1.Picture.Bitmap.LoadFromFile(myimage.png)
>
>
look at {$R *.lfm} it is text file loaded as FPC resouce, i do not know how
it is happened, BTW loading in runtime not good idea for Component Packages
icons.

Best Regards
-- 
Zaher Dirkey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110324/570abb37/attachment-0003.html>


More information about the Lazarus mailing list