On Feb 17, 2008 8:08 PM, Darwin Reynoso <[EMAIL PROTECTED]> wrote: > Hi, > how do disable a menubar item for ejample: File > New > Open > Save > Quit > i'm writing a small text editor and i need to be able to disable the > save item when there's no data i'm using monodevelop rc1
When you click Save in the designer, you can set the action name in the properties window. You can then refer to this name in code. So if you set it to SaveAction then just set: this.SaveAction.Sensitive = false; Using your own logic for determining this state, of course. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers _______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
