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

Micha Nelissen mdvpost at hotmail.com
Thu Jun 26 10:09:00 EDT 2003


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.

Regards,

Micha.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00036.bin
Type: application/octet-stream
Size: 945 bytes
Desc: "menu_ownernil.patch"
Url : http://localhost/pipermail/lazarus/attachments/20030626/af229ff9/bin00036.bin


More information about the Lazarus mailing list