RE: [Boa Constr] Building menu bar
Status: Beta
Brought to you by:
riaan
From: Patrick K. O'B. <po...@or...> - 2001-05-25 17:19:01
|
What you are seeing in the first line of the menu is the menu title. To get rid of it, set the title property to an empty string ("") instead of "File". Perhaps the Boa tutorial should be changed, since most people will not want titles on their menus (I would think). At least not under Windows. I'm not sure about the Gnome and KDE standards but this behavior still strikes me as a bit odd. Is this a boa thing or a wxWindows thing? Should the title property be left blank (which in effect renders it useless) or should something else be changed? Or do I need a clue? Hold on while I RTFM... --- wxMenu::SetTitle void SetTitle(const wxString& title) Sets the title of the menu. Parameters title The title to set. Remarks This is relevant only to popup menus. --- That last line seems like a big clue - the title only applies to popup menus (though apparently it shows up on regular menus if you do set it). Hmmm... So is this a bug or should we not set the title for normal menus? --- Patrick K. O'Brien Orbtech "I am, therefore I think." -----Original Message----- From: boa...@li... [mailto:boa...@li...]On Behalf Of Sasa Zivkov Sent: Friday, May 25, 2001 5:19 AM To: boa...@li... Subject: [Boa Constr] Building menu bar Hi, Let's add one wxMenu to a wxFrame... let's set the title to "File" and add two menu items "Open" and "Exit" Let's now add a wxMenuBar, edit its Menus collection and add the "File" wxMenu to the menu bar. When I start the application menu looks like: File File ---- Open Exit instead of: File Open Exit This also happens with the example from Boa tutorial. -- Sasa _______________________________________________ Boa-constructor-users mailing list Boa...@li... http://lists.sourceforge.net/lists/listinfo/boa-constructor-users |