[Lazarus] When do I need a component rather than a plain object?

Michael Van Canneyt michael at freepascal.org
Tue Nov 16 15:39:13 CET 2010



On Tue, 16 Nov 2010, Mattias Gaertner wrote:

> On Tue, 16 Nov 2010 14:46:08 +0200
> Graeme Geldenhuys <graemeg.lists at gmail.com> wrote:
>
>> [...]
>>> there is no simple source equivalent. For example images and icons.
>>
>> In fpGUI, I use the same method as 'bin2obj', making such resources simply
>> arrays of bytes.
>
> And then?
>
> Image.Data := ...

The problem is moot in fpGUI, it doesn't have a TImage component.
Drawing an image must be done manually using Canvas.Draw, so a
hypothetical IDE for it must not worry about it  :-)

Michael.




More information about the Lazarus mailing list