[Gtk-sharp-list] Toolbars

Alvaro A. Ramirez alramire@syr.edu
Tue, 27 Jan 2004 06:41:20 -0500


Mike, 

This is how I have done it. Not sure if it is the correct way, but it
works for me.  

On Mon, 2004-01-26 at 23:24, GodBrain wrote:
> Hello,
> 
>      I asked a question about toolbars on the 22nd and never got any
>      response. Could someone just tell me if they should work or not?
>      I haven't seen any other posts on this.
> 
>      These were my original questions:
> 
> 1. How does one make a toolbar visible/non-visible?
> I have tried HideAll() and .Visible = false; which do
> nothing.

	static void CheckMenuItemShowToolBarClicked(object obj, EventArgs args)
	{

		if (CheckMenuItemShowToolBar.Active)
			ToolBarB.Visible=true;
		else
			ToolBarB.Visible=false;

		
	}


> 
> 2. Change the style of the toolbar?
> 
> toolBar1.ToolbarStyle = ToolbarStyle.Text;
>  This does not work, the toolbars are always
> (BothHoriz).

	static void CheckMenuItemShowToolBarTextClicked(object obj, EventArgs
args)
	{
		if (CheckMenuItemShowToolBarText.Active)
			ToolBarB.ToolbarStyle=Gtk.ToolbarStyle.BothHoriz;
		else
			ToolBarB.ToolbarStyle=Gtk.ToolbarStyle.Icons;
		
	}

> 
> 3.
> 
> toolBar1.IconSize = IconSize.SmallToolbar;
> Setting this to LargeToolbar does nothing...


	static void CheckMenuItemShowLargeToolBarClicked(object obj, EventArgs
args)
	{
		if(CheckMenuItemShowLargeToolBar.Active)
			ToolBarB.IconSize=Gtk.IconSize.LargeToolbar;
		else
			ToolBarB.IconSize=Gtk.IconSize.SmallToolbar;
		
	}

> 
> Thanks again for any help...

Hope that helps.

Alvaro