New topic: 

Menues and Window types

<http://forums.realsoftware.com/viewtopic.php?t=29668>

       Page 1 of 1
   [ 3 posts ]                 Previous topic | Next topic         Author  
Message       GBM           Post subject: Menues and Window typesPosted: Thu 
Aug 20, 2009 10:26 pm                        
Joined: Tue Jul 07, 2009 9:58 pm
Posts: 7              Will a menu function with a Movable Modal window?  

I have an application with a menu that works fine when the main window type is 
set to Document, Floating, Global Floating or Modeless Dialog but is greyed out 
and/or non-functional when the window type is set to Movable Modal.  All the 
items of the menu are auto-enabled and the menu is selected as the MenuBar of 
the window and MenuBarVisible is enabled.

Is there a way to get the menu to function when a window type of Movable Modal 
is selected for this window?

Thanks.   
                            Top                computerfreaker           Post 
subject: Re: Menues and Window typesPosted: Fri Aug 21, 2009 8:42 am            
                   
Joined: Thu Mar 05, 2009 1:03 pm
Posts: 1415
Location: USA              Make sure the menu items have menu handlers - even 
if a menu item is enabled, if it doesn't have a handler RB will disable it 
automatically...      
_________________
With great power comes great responsibility.
Learn something new every day, and the rest will take care of itself.
Life is a journey, not a destination. Enjoy the trip!   
                            Top                mjh           Post subject: Re: 
Menues and Window typesPosted: Fri Aug 21, 2009 8:55 am                        
Joined: Sun Feb 19, 2006 3:10 pm
Posts: 329
Location: Hamburg, Germany              GBM wrote:Is there a way to get the 
menu to function when a window type of Movable Modal is selected for this 
window?
Call the menu item’s Enable method in the window’s EnableMenuItems handler 
and it will be enabled, even for a movable modal.     
_________________
Michael J. Hußmann 
http://digicam-experts.de  
                            Top           Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 3 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]

Reply via email to