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

Sven Barth pascaldragon at googlemail.com
Tue Nov 16 15:18:26 CET 2010


Am 16.11.2010 15:04, schrieb Graeme Geldenhuys:
> Op 2010-11-16 15:13, Mattias Gaertner het geskryf:
>>>
>>> In fpGUI, I use the same method as 'bin2obj', making such resources simply
>>> arrays of bytes.
>>
>> And then?
>>
>> Image.Data := ...
>
>
> In a nutshell, yes. fpGUI's image handling is not identical to LCL's
> though. Below is example code of loading and registering a new image with
> an application.
>
>    fpgImages.AddMaskedBMP('tadmin.edit',  @tadmin_edit16,
>        sizeof(tadmin_edit16), 0,0 );
>
>    fpgImages.AddBMP('tadmin.copy',  @tadmin_copy16,
>        sizeof(tadmin_copy16));
>
>
> tadmin_edit16 is the image array identifier.

And where is that image array identifier defined? (I believe that's the 
point that Matthias wants to know)

Regards,
Sven




More information about the Lazarus mailing list