[lazarus] Patch: Menuitem.Owner = nil -> invalid type cast (win32)

Micha Nelissen mdvpost at hotmail.com
Thu Jun 26 10:37:22 EDT 2003


Mattias Gaertner wrote:
> On Thu, 26 Jun 2003 16:35:09 +0200
> "Micha Nelissen" <mdvpost at hotmail.com> wrote:
>
>> Hi,
>>
>> Based on the assumption that the owner of a menuitem is a form, I
>> recommend the following patch. It now checks whether there is a valid
>> pointer and this is of type tcustomform, which is what DrawMenuBar
>> expects.
>>
>> If Michael thinks it's OK, please commit.
>
> I have changed it to use teh Menu.Parent. Please test if it works. My
> cross compilation is not yet working. Lack of time. But I made some
> progress.

IIRC, the Parent of a menu is another TMenuItem....This won't get us very
far.

Regards,

Micha.






More information about the Lazarus mailing list