[Lazarus] Setting a cursor from resource

patspiper patspiper at gmail.com
Thu Mar 24 12:11:47 CET 2011


On 03/24/2011 01:05 PM, Zaher Dirkey wrote:
> 2011/3/24 patspiper <patspiper at gmail.com <mailto: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)

Stephano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110324/8b48592a/attachment-0003.html>


More information about the Lazarus mailing list