[Gtk-sharp-list] Menubar item

Chris Howie cdhowie at gmail.com
Sun Feb 17 21:21:54 EST 2008

On Feb 17, 2008 8:08 PM, Darwin Reynoso <monouser at gmail.com> 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

More information about the Gtk-sharp-list mailing list