[lazarus] Win32 menu does not work

Micha Nelissen mdvpost at hotmail.com
Tue Jun 24 06:19:18 EDT 2003


Marco van de Voort wrote:
>> Michael Van Canneyt wrote:
>>>> My concern exactly. Does the fcl have a compatible TBits class? (In
>>>> terms of functionality)? That would solve it easily, no?
>>>
>>> TBits is implemented, so you can try it.
>>
>> Hmm, it seems it uses 4 bytes per bit entry. A little overkill if
>> you ask me :). They surely could have simpy used 1 byte? Anyway, I
>> will try it. Shall I create the bit array in win32int.pp?
>
> Wouldn't limit that forms to 256 controls?

Heh. No. Please take a look at bits.inc and you will understand what I mean.
TBits is a long array of 'bits'. Undeterminate length in delphi, in fcl it
seems you need to know in advance :(. Each bit takes a certain amount of
space. The smallest is 1/8th of a byte (as delphi uses), but the fcl uses 4
bytes.

Regards,

Micha.






More information about the Lazarus mailing list