2009/8/11 Jacek Kałucki <[email protected]>: > Użytkownik Nate Lowrie napisał: >> 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 them.
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#a18795225 and http://www.nabble.com/Sub-Menu-display-problem-to18813741.html#a18813741 for the applicable threads. I never did get it fixed. Regards, Nate _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
