本文整理汇总了C#中Gtk.ToolButton.Hide方法的典型用法代码示例。如果您正苦于以下问题:C# ToolButton.Hide方法的具体用法?C# ToolButton.Hide怎么用?C# ToolButton.Hide使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gtk.ToolButton
的用法示例。
在下文中一共展示了ToolButton.Hide方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MessageView
public MessageView(String messagebox)
{
this.messagebox = messagebox;
messagesWindow = new ScrolledWindow();
messagesWindow.ShadowType = ShadowType.EtchedIn;
messagesWindow.SetPolicy(PolicyType.Automatic, PolicyType.Automatic);
treeviewMessages = new TreeView();
treeviewMessages.BorderWidth = 0;
treeviewMessages.AppendColumn ("Site", new CellRendererText(), "text", 2).Resizable = true;;
treeviewMessages.AppendColumn ("User", new CellRendererText(), "text", 3).Resizable = true;;
treeviewMessages.AppendColumn ("Subject", new CellRendererText(), "text", 4).Resizable = true;;
treeviewMessages.AppendColumn ("Date", new CellRendererText(), "text", 5).Resizable = true;;
treeviewMessages.RowActivated += treeviewMessages_RowActivated;
messagesWindow.Add(treeviewMessages);
this.Add1 (messagesWindow);
contentBox = new VBox(false, 0);
Toolbar toolbar = new Toolbar();
toolbar.HeightRequest = 38;
toolbar.ToolbarStyle = ToolbarStyle.Icons;
toolbar.BorderWidth = 0;
Image tmpimage = new Image();
tmpimage.Pixbuf = new Gdk.Pixbuf(".images/icon_up.png");
upbtn = new ToolButton(tmpimage, "");
upbtn.TooltipText = "Expand view to top";
upbtn.Clicked += upbtn_Clicked;
Image tmpimage2 = new Image();
tmpimage2.Pixbuf = new Gdk.Pixbuf(".images/icon_down.png");
downbtn = new ToolButton(tmpimage2, "");
downbtn.TooltipText = "Split view";
downbtn.Clicked += downbtn_Clicked;
Image tmpimage3 = new Image();
tmpimage3.Pixbuf = new Gdk.Pixbuf(".images/reply.png");
replybtn = new ToolButton(tmpimage3, "");
replybtn.TooltipText = "Reply to sender";
SeparatorToolItem sepSpacer = new SeparatorToolItem();
sepSpacer.Expand = true;
sepSpacer.Draw = false;
messageWindow = new ScrolledWindow();
messagebrowser = new WebView();
messagebrowser.Editable = false;
messageWindow.Add(messagebrowser);
contentBox.PackStart(toolbar, false, false, 0);
contentBox.PackStart(messageWindow);
toolbar.Add(replybtn);
toolbar.Add(sepSpacer);
toolbar.Add(upbtn);
toolbar.Add(downbtn);
this.Add2(contentBox);
this.ShowAll();
downbtn.Hide ();
replybtn.Sensitive = false;
treestoreMessages = new TreeStore (typeof(string),typeof(string), typeof(string), typeof(string), typeof(string), typeof(string));
forums = new List<Forum> ();
getBoxMessages(messagebox);
treestoreMessages.AppendValues("000", "000", "SharpTalk", "Admin", "Welcome to SharpTalk", "");
treestoreMessages.SetSortColumnId(5, SortType.Descending);
treeviewMessages.Model = treestoreMessages;
}
示例2: ForumView
//.........这里部分代码省略.........
textviewbtn.Active = true;
textviewbtn.Toggled += textviewbtn_Toggled;
SeparatorToolItem sepSpacer = new SeparatorToolItem ();
sepSpacer.Expand = true;
sepSpacer.Draw = false;
sepFullsize = new SeparatorToolItem ();
imageSortAscending = new ToggleToolButton (Stock.SortAscending);
imageSortAscending.TooltipText = "Show earliest images first";
imageSortAscending.Active = true;
imageSortAscending.Toggled += imageSortAscending_Toggled;
imageSortDescending = new ToggleToolButton (Stock.SortDescending);
imageSortDescending.TooltipText = "Show latest images first";
imageSortDescending.Toggled += imageSortDescending_Toggled;
imageLoadingProgress = new ProgressBar ();
ToolItem progressItem = new ToolItem ();
progressItem.Expand = false;
progressItem.Add (imageLoadingProgress);
imageLoadingProgress.Fraction = 0;
toolbar.Add (imageSortAscending);
toolbar.Add (imageSortDescending);
toolbar.Add (progressItem);
toolbar.Add (firstbtn);
toolbar.Add (prevbtn);
toolbar.Add (textItem);
toolbar.Add (nextbtn);
toolbar.Add (lastbtn);
toolbar.Add (sepFullsize);
toolbar.Add (savebtn);
toolbar.Add (rotatebtn);
toolbar.Add (sepSpacer);
toolbar.Add (imageviewbtn);
toolbar.Add (textviewbtn);
toolbar.Add (closebtn);
toolbar.Add (upbtn);
toolbar.Add (downbtn);
threadwindow = new ScrolledWindow ();
threadbrowser = new WebView ();
threadbrowser.Editable = false;
threadbrowser.NavigationRequested += threadbrowser_NavigationRequested;
threadwindow.Add (threadbrowser);
iconStore = new ListStore (typeof(string), typeof(Gdk.Pixbuf), typeof(string), typeof(string), typeof(int), typeof(int));
iconview = new IconView (iconStore);
iconview.Margin = 1;
iconview.Spacing = 1;
iconview.BorderWidth = 0;
iconview.ColumnSpacing = 1;
iconview.RowSpacing = 1;
iconview.PixbufColumn = 1;
iconview.TooltipColumn = 2;
iconview.SelectionMode = SelectionMode.Multiple;
iconview.ItemActivated += iconview_ItemActivated;
iconview.ButtonPressEvent += iconView_ButtonPress;
iconview.Model = iconStore;
iconview.ModifyBase (StateType.Normal, new Gdk.Color (0x66, 0x66, 0x66));
iconwindow = new ScrolledWindow ();
iconwindow.ShadowType = ShadowType.EtchedIn;
iconwindow.SetPolicy (PolicyType.Automatic, PolicyType.Automatic);
iconwindow.Add (iconview);
imagewindow = new EventBox ();
fullSizeImage = new Image ();
// JICE TEST
fullsizeLayout = new Layout (null, null);
fullsizeLayout.Add (fullSizeImage);
fullsizeLayout.SizeRequested += fullsizeLayout_SizeRequested;
imagewindow.ModifyBase (StateType.Normal, new Gdk.Color (0x66, 0x66, 0x66));
imagewindow.Add (fullsizeLayout);
imagewindow.CanFocus = true;
imagewindow.KeyPressEvent += imagewindow_keyPressEvent;
imagewindow.SizeRequested += imagewindow_sizeAllocated;
// imagewindow.Add(fullSizeImage);
contentBox.PackStart (toolbar, false, false, 0);
contentBox.PackStart (iconwindow);
contentBox.PackStart (imagewindow);
contentBox.PackStart (threadwindow);
this.Add2 (contentBox);
this.ShowAll ();
imageSortAscending.Hide ();
imageSortDescending.Hide ();
iconwindow.Hide ();
imagewindow.Hide ();
closebtn.Hide ();
rotatebtn.Hide ();
savebtn.Hide ();
sepFullsize.Hide ();
downbtn.Hide ();
imageLoadingProgress.Hide ();
String favouriteThreads = UserSettings.getValue ("Site" + site.forumName + ".Forum" + forum + ".Favourites");
favThreads = favouriteThreads.Split (';');
treestoreTopics = new TreeStore (typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(Gdk.Pixbuf));
topicsLoaded = 0;
loadTopics ();
treeviewTopics.Model = treestoreTopics;
}