[lazarus] Win32 menu does not work

Micha Nelissen mdvpost at hotmail.com
Tue Jun 24 11:37:22 EDT 2003


Michael Van Canneyt wrote:
> On Tue, 24 Jun 2003, Mattias Gaertner wrote:
>
>>
>> Eh, I don't know why FCommand is still in the LCL. Probably as we
>> started, we didn't know, if it is needed for Delphi compatibility.
>> But this is not the case. The FCommand is a win32 specific thing to
>> identify handles. So, it should not be stored in the LCL, but in the
>> win32 interface. A Handle must be enough to identify any interface
>> component.
>> Maybe the win32 api identifies it otherwise. If this is the case,
>> then the win32 interface should map the handles.
>>
>> I will have a look ...
>
> Win32 has a handle per menu item, but the *command* associated with
> the menu can be shared between menu items, so this needs to be stored
> with the

I don't know how useful it would be to have two menu items firing the same
event... :).

Regards,

Micha.






More information about the Lazarus mailing list