New topic: Different Menus for different windows
<http://forums.realsoftware.com/viewtopic.php?t=46581> Page 1 of 1 [ 5 posts ] Previous topic | Next topic Author Message relaht Post subject: Different Menus for different windowsPosted: Wed Jan 16, 2013 3:50 pm Joined: Fri Dec 01, 2006 9:39 pm Posts: 178 My app should have one MenuBar. But one menu has to change if different windows come in focus. So one menu has to change completely for each of the different application windows, but the rest of the MenuBar has to stay. I hope I made it clear.... I did that before, but I can't remember how to do it. Any help? Top DaveS Post subject: Re: Different Menus for different windowsPosted: Wed Jan 16, 2013 5:36 pm Joined: Sun Aug 05, 2007 10:46 am Posts: 4416 Location: San Diego, CA create multiple menubars... and set the menubar property of each window to the menu you want to use _________________ Dave Sisemore MacPro, OSX Lion 10.7.4 RB2012r1 Note : I am not interested in any solutions that involve custom Plug-ins of any kind Top relaht Post subject: Re: Different Menus for different windowsPosted: Wed Jan 16, 2013 6:37 pm Joined: Fri Dec 01, 2006 9:39 pm Posts: 178 DaveS wrote:create multiple menubars... and set the menubar property of each window to the menu you want to use Except one menu, the MenuBar of each window are the same. If I do this and I change something at the MenuBar, I have to to the changes on each MenuBar.... (or not?) That sounds very difficult to maintain. How about putting all menus in one MenuBar and hide the menus that are not made for a certain window..? Top DaveS Post subject: Re: Different Menus for different windowsPosted: Wed Jan 16, 2013 6:46 pm Joined: Sun Aug 05, 2007 10:46 am Posts: 4416 Location: San Diego, CA As long as you don't wan't to hide and unhide the top level menu..... I have never been able to get that to work... Hide/UnHide/Enable/Disable child menus... no problem.... Another idea.. .and I used this in one project.... define you menu as some type of internal structure (I used XML) and then dynamically rebuild the menu as required.... That is do not use the IDE to define the menubar... do it all in code That way you can do almost anything you want.. _________________ Dave Sisemore MacPro, OSX Lion 10.7.4 RB2012r1 Note : I am not interested in any solutions that involve custom Plug-ins of any kind Top relaht Post subject: Re: Different Menus for different windowsPosted: Wed Jan 16, 2013 7:01 pm Joined: Fri Dec 01, 2006 9:39 pm Posts: 178 I just checked it and there seems no problem to hide and unhide a menu. (I am talking about the menus that are shown directly at the MenuBar) So this might be the easiest way to do what I want.... Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 5 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
