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

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Jun 26 11:36:22 EDT 2003


On Thu, 26 Jun 2003 17:55:27 +0200
"Micha Nelissen" <mdvpost at hotmail.com> wrote:

> Micha Nelissen wrote:
> > Mattias Gaertner wrote:
> >>
> >> 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.
> 
> The parent of a tmenuitem is another tmenuitem. In delphi, a TMenu does
> not have a Parent. In the lcl it does, but I don't know what it
> represents. When is it set?

lcl/include/customform.inc  TCustomForm.SetMenu


Mattias






More information about the Lazarus mailing list