On Thu, 31 Aug 2006, Bisma Jayadi wrote:

You can embed the resource file as-is on linux.

So FPC can read .res file just like on Windows?

Yes.


To extract the images from the resource, you'll need the fpc FindResource and LoadResource calls to load them.

The component use Delphi's LoadFromResource to read the image from the resource file and paint it on its Canvas. Should I change this code? Or the component simply compilable by FPC on any platforms? Is there any example?

The loading will work. I don't think the drawing will work as-is.


and add them again as lazarus resources.

How to add resources into a component on Lazarus? Sorry, I can't find any appropriate menu item regarding this on Lazarus.

There is no menu-item for that,  you must use the separate lazres tool.

Michael.

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to