Author: Nate Lowrie
Posted: 2009-08-12 at 09:09:20
2009/8/11 Jacek Ka=B3ucki <laborm@rz.onet.pl>:
> U=BFytkownik Nate Lowrie napisa=B3:
>> I did some work that improved the menu's a while back but windows
>> menus are still quirky in their display and event handling.
>>
>
> It's not a good news for me, since my application usage proportion
> is 70/30% Windows/Linux.
>
> I have two questions:
> 1) Could somebody explain me, what is purpose of adding empty menu item
> at every first element of menu in dMenu._createMenuItem method,
> 2) Why mehods own/disown in dMenu.remove method, are called twice,
> first in wx.Menu.RemoveItem method, and second therein.
> I didn't noticed any difference in application working with or without th=
em.
It's a legacy issue. What version of WX are you using? When I was
working with the menus, we were still on wx 2.7. It was an issue in
wx, and the methods above got around the inherent problems enough to
make the menu usable. See
http://www.nabble.com/weird-menu-problem-with-mnxml-to18795225.html#a187952=
25
and http://www.nabble.com/Sub-Menu-display-problem-to18813741.html#a1881374=
1
for the applicable threads. I never did get it fixed.
Regards,
Nate