[Gtk-sharp-list] Re: Toolbars

mike@godbrain.net mike@godbrain.net
Tue, 27 Jan 2004 14:35:21 -0800 (PST)


On Tue, 27 Jan 2004 17:57:59 +0200, Ecmel Ercan wrote:

> 
> Hi,
> 
> This is how I did:
> 
> 
>     private void on_viewToolbar_activate (object obj,
> EventArgs args)
>     {
>         mainHandleBox.Visible = viewToolbar.Active;
>     }
> 
> viewToolbar is the CheckMenuItem
> 
> mainHandleBox is the HandleBox which hosts the
toolbar.
> 
> Hope helps
> 
> Ecmel
> 	
 Thanks for the responses about the toolbar problems I
was having. The problem is my code was about the same
as the examples.
Since things still aren't working I decided to install
mono .29 and GTK# .14 on Windows 2000. (I am running
mono .28 and GTK# .12 on Fedora 1 normally but didn't
want to change that yet.) When I got .29 working my app
would choke on Button.NewFromStock and wouldn't
compile. Figuring this option had been removed I went
out to monodoc to get the latest info.

Shouldn't this work to show the icon on a button?
Button buttonCut = new Button(Stock.Cut);
buttonCut.Label = "Cut"; 

I did this to all my buttons and now they only show
text! :(
Did I miss something simple here?

Thanks for your time...


Mike H