当前位置: 首页>>代码示例>>C#>>正文


C# Gtk.Label.Show方法代码示例

本文整理汇总了C#中Gtk.Label.Show方法的典型用法代码示例。如果您正苦于以下问题:C# Gtk.Label.Show方法的具体用法?C# Gtk.Label.Show怎么用?C# Gtk.Label.Show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Gtk.Label的用法示例。


在下文中一共展示了Gtk.Label.Show方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: LabelBackend

 public LabelBackend()
 {
     Widget = new Gtk.Label ();
     Widget.Show ();
     Widget.Xalign = 0;
     Widget.Yalign = 0;
 }
开发者ID:carlosalberto,项目名称:xwt,代码行数:7,代码来源:LabelBackend.cs

示例2: QueryWidget

		public QueryWidget (PhotoQuery query, Db db, TagSelectionWidget selector)
		{
			tips.Enable ();

			this.query = query;
			query.Changed += HandleChanged;

			Gtk.HSeparator sep = new Gtk.HSeparator ();
			sep.Show ();
			this.PackStart (sep, false, false, 0);
			
			Gtk.HBox hbox = new Gtk.HBox ();
			hbox.Show ();
			this.PackStart (hbox, false, false, 0);
			
			label = new Gtk.Label (Catalog.GetString ("Find: "));
			label.Show ();
			label.Ypad = 9;
			hbox.PackStart (label, false, false, 0);

			untagged = new Gtk.Label (Catalog.GetString ("Untagged photos"));
			untagged.Visible = false;
			hbox.PackStart (untagged, false, false, 0);

			comma_label = new Gtk.Label (", ");
			comma_label.Visible = false;
			hbox.PackStart (comma_label, false, false, 0);

			rollfilter = new Gtk.Label (Catalog.GetString ("Import roll"));	
			rollfilter.Visible = false;
			hbox.PackStart (rollfilter, false, false, 0);

			logic_widget = new LogicWidget (query, db.Tags, selector);
			logic_widget.Show ();
			hbox.PackStart (logic_widget, true, true, 0);

			warning_box = new Gtk.HBox ();
			warning_box.PackStart (new Gtk.Label (System.String.Empty));
			
			Gtk.Image warning_image = new Gtk.Image ("gtk-info", Gtk.IconSize.Button);
			warning_image.Show ();
			warning_box.PackStart (warning_image, false, false, 0);
			
			clear_button = new Gtk.Button ();
			clear_button.Add (new Gtk.Image ("gtk-close", Gtk.IconSize.Button));
			clear_button.Clicked += HandleClearButtonClicked;
			clear_button.Relief = Gtk.ReliefStyle.None;
			hbox.PackEnd (clear_button, false, false, 0);
			tips.SetTip (clear_button, Catalog.GetString("Clear search"), null);

			Gtk.Label warning = new Gtk.Label (Catalog.GetString ("No matching photos found"));
			warning_box.PackStart (warning, false, false, 0);
			warning_box.ShowAll ();
			warning_box.Spacing = 6;
			warning_box.Visible = false;

			hbox.PackEnd (warning_box, false, false, 0);
			
			warning_box.Visible = false;
		}
开发者ID:AminBonyadUni,项目名称:facedetect-f-spot,代码行数:60,代码来源:QueryWidget.cs

示例3: NicorepoWidgetItemCommunityLiveReserve

        public NicorepoWidgetItemCommunityLiveReserve()
            : base()
        {
            LabelSan.Text = "さんが";

            TitleLabel.LabelProp = "<b>コミュニティ放送予約通知</b>";

            labelNi = new Gtk.Label("に 生放送を予約しました。");
            HBoxMain.PackEnd(labelNi);
            labelNi.Show();

            labelTime = new Gtk.Label("嘘!ケーキ");
            HBoxMain.PackEnd(labelTime);
            labelTime.Show();
        }
开发者ID:aoisensi,项目名称:NicoMonoViewer,代码行数:15,代码来源:NicorepoWidgetItemCommunityLiveReserve.cs

示例4: CreateNotebookDialog

		public CreateNotebookDialog(Gtk.Window parent,
									Gtk.DialogFlags flags)
				: base (parent, flags, Gtk.MessageType.Info,
						Gtk.ButtonsType.None,
						Catalog.GetString ("Create a new notebook"),
						Catalog.GetString ("Type the name of the notebook you'd like to create."))
		{
			this.Pixbuf = newNotebookIconDialog;
			
			Gtk.Table table = new Gtk.Table (2, 2, false);
			
			Gtk.Label label = new Gtk.Label (Catalog.GetString ("N_otebook name:"));
			label.Xalign = 0;
			label.UseUnderline = true;
			label.Show ();
			
			nameEntry = new Gtk.Entry ();
			nameEntry.Changed += OnNameEntryChanged;
			nameEntry.ActivatesDefault = true;
			nameEntry.Show ();
			label.MnemonicWidget = nameEntry;
			
			errorLabel = new Gtk.Label ();
			errorLabel.Xalign = 0;
			errorLabel.Markup = string.Format("<span foreground='red' style='italic'>{0}</span>",
			                                  Catalog.GetString ("Name already taken"));
			
			table.Attach (label, 0, 1, 0, 1);
			table.Attach (nameEntry, 1, 2, 0, 1);
			table.Attach (errorLabel, 1, 2, 1, 2);
			table.Show ();
			
			ExtraWidget = table;
			
			AddButton (Gtk.Stock.Cancel, Gtk.ResponseType.Cancel, false);
			AddButton (
				newNotebookIcon,
				// Translation note: This is the Create button in the Create
				// New Note Dialog.
				Catalog.GetString ("C_reate"),
				Gtk.ResponseType.Ok,
				true);
			
			// Only let the Ok response be sensitive when
			// there's something in nameEntry
			SetResponseSensitive (Gtk.ResponseType.Ok, false);
			errorLabel.Hide ();
		}
开发者ID:MichaelAquilina,项目名称:tomboy,代码行数:48,代码来源:CreateNotebookDialog.cs

示例5: NoteOfTheDayPreferences

		public NoteOfTheDayPreferences ()
: base (false, 12)
		{
			Gtk.Label label = new Gtk.Label (
			        Catalog.GetString (
						"Change the <b>Today: Template</b> note to customize " +
						"the text that new Today notes have."));
			label.UseMarkup = true;
			label.Wrap = true;
			label.Show ();
			PackStart (label, true, true, 0);

			open_template_button = new Gtk.Button (
			        Catalog.GetString ("_Open Today: Template"));
			open_template_button.UseUnderline = true;
			open_template_button.Clicked += OpenTemplateButtonClicked;
			open_template_button.Show ();
			PackStart (open_template_button, false, false, 0);

			ShowAll ();
		}
开发者ID:MichaelAquilina,项目名称:tomboy,代码行数:21,代码来源:NoteOfTheDayPreferences.cs

示例6: Header

        public Header(string text)
            : base()
        {
            base.SetSizeRequest (-1, 30);

            Gtk.Alignment alignment = new Gtk.Alignment (0, 0, 1, 1);
            alignment.TopPadding = 1;
            alignment.LeftPadding = 5;
            alignment.RightPadding = 0;
            alignment.BottomPadding = 1;
            base.Add (alignment);

            //Select ();

            Gtk.HBox box = new Gtk.HBox ();
            alignment.Add (box);

            label = new Gtk.Label ();
            label.Ypad = 3;
            //	label.Xpad = 3;
            //base.Add (label);
            box.PackStart (label, true, true, 0);
            label.SetAlignment (0f, 0.5f);
            label.Justify = Gtk.Justification.Left;

            label.Markup = "<b>" + text + "</b>";

            closeButton = new Gtk.Button ();
            closeButton.Add (new Gtk.Image ("gtk-close", Gtk.IconSize.Menu));
            closeButton.Relief = Gtk.ReliefStyle.None;
            box.PackEnd (closeButton, false, false, 0);
            closeButton.ShowAll ();

            label.Show ();
            box.Show ();
            alignment.Show ();

            closeButton.Clicked += closeButton_Clicked;
        }
开发者ID:codebutler,项目名称:meshwork,代码行数:39,代码来源:Header.cs

示例7: NoteOfTheDayPreferences

        public NoteOfTheDayPreferences()
            : base(false, 12)
        {
            Gtk.Label label = new Gtk.Label (
                    Catalog.GetString (
                        "Change the <b>Today: Template</b> note to customize " +
                        "the text that new Today notes have."));
            label.UseMarkup = true;
            label.Wrap = true;
            label.Show ();
            PackStart (label, true, true, 0);

            use_yesterday_check = new Gtk.CheckButton(
                Catalog.GetString("_Use yesterday note as template."));
            use_yesterday_check.UseUnderline = true;
            use_yesterdat_check.Show();
            PackStart (use_yesterday_check, false, false, 0);

            // Check if preference has been set before
            if (Preferences.Get(NoteOfTheDay.NOTD_YESTERDAY) == null){
                // Default value
                use_yesterday_check.Active = true;
            }else if ((bool) Preferences.Get(NoteOfTheDay.NOTD_YESTERDAY)){
                use_yesterday_check.Active = true;
            }else{
                use_yesterday_check.Active = false;
            }
            use_yesterday_check.Toggled += OnYesterdayCheckToggled;

            open_template_button = new Gtk.Button (
                    Catalog.GetString ("_Open Today: Template"));
            open_template_button.UseUnderline = true;
            open_template_button.Clicked += OpenTemplateButtonClicked;
            open_template_button.Show ();
            PackStart (open_template_button, false, false, 0);

            ShowAll ();
        }
开发者ID:pacoqueen,项目名称:tomboy-noteoftheday,代码行数:38,代码来源:NoteOfTheDayPreferences.cs

示例8: HitRendererControl

		public HitRendererControl (string _name, string icon, HitRenderer r) 
			: base (false, 3)
		{
			name = _name;
			renderer = r;

			renderer.RefreshEvent += new HitRenderer.RefreshHandler (OnRefresh);
			
			if (icon != null) {
				Gtk.Widget iconW = DataBarn.GetImageWidget (icon);
				if (iconW != null) {
					this.PackStart (iconW, false, false, 3);
					iconW.Show ();
				}
			}

			nameLabel = new Gtk.Label ("");
			this.PackStart (nameLabel, false, false, 3);
			nameLabel.Show ();


			nextButton = new Gtk.Button ("Next");
			nextButton.Clicked += new EventHandler (OnNextClicked);
			this.PackEnd (nextButton, false, false, 3);

			displayedLabel = new Gtk.Label ("");
			this.PackEnd (displayedLabel, false, false, 3);
			displayedLabel.Show ();

			prevButton = new Gtk.Button ("Prev");
			prevButton.Clicked += new EventHandler (OnPrevClicked);
			this.PackEnd (prevButton, false, false, 3);

			// Initialize things
			OnRefresh (null);
		}
开发者ID:ArsenShnurkov,项目名称:beagle-1,代码行数:36,代码来源:HitRendererControl.cs

示例9: Build

 public static void Build(object obj, string id)
 {
     System.Collections.Hashtable bindings = new System.Collections.Hashtable();
     if ((id == "Sosp.EarthOMeter.MainWindow")) {
         Gtk.Window cobj = ((Gtk.Window)(obj));
         // Widget Sosp.EarthOMeter.MainWindow
         cobj.Title = "EarthOMeter";
         Gtk.UIManager w1 = new Gtk.UIManager();
         Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
         Gtk.Action w3 = new Gtk.Action("paste", null, "Entfernungen aus Zwischenablage laden", "gtk-paste");
         bindings["paste"] = w3;
         w2.Add(w3, "<Control><Mod2>v");
         Gtk.Action w4 = new Gtk.Action("open", null, "Entfernungen aus KML Datei laden", "gtk-open");
         bindings["open"] = w4;
         w2.Add(w4, null);
         Gtk.Action w5 = new Gtk.Action("Bearbeiten", "Bearbeiten", null, null);
         w5.ShortLabel = "Bearbeiten";
         bindings["Bearbeiten"] = w5;
         w2.Add(w5, null);
         Gtk.Action w6 = new Gtk.Action("Hilfe", "Hilfe", null, null);
         w6.ShortLabel = "Hilfe";
         bindings["Hilfe"] = w6;
         w2.Add(w6, null);
         Gtk.Action w7 = new Gtk.Action("Info", "Info", null, "gtk-about");
         w7.ShortLabel = "Info";
         bindings["Info"] = w7;
         w2.Add(w7, null);
         w1.InsertActionGroup(w2, 0);
         cobj.AddAccelGroup(w1.AccelGroup);
         cobj.Icon = Gdk.Pixbuf.LoadFromResource("Icon22x22.png");
         cobj.WindowPosition = ((Gtk.WindowPosition)(4));
         cobj.Events = ((Gdk.EventMask)(0));
         cobj.Name = "Sosp.EarthOMeter.MainWindow";
         // Container child Sosp.EarthOMeter.MainWindow.Gtk.Container+ContainerChild
         Gtk.VBox w8 = new Gtk.VBox();
         w8.Events = ((Gdk.EventMask)(0));
         w8.Name = "vbox1";
         // Container child vbox1.Gtk.Box+BoxChild
         w1.AddUiFromString("<ui><menubar name='menubar2'><menu action='Bearbeiten'><menuitem action='open'/><menuitem action='paste'/></menu><menu action='Hilfe'><menuitem action='Info'/></menu></menubar></ui>");
         Gtk.MenuBar w9 = ((Gtk.MenuBar)(w1.GetWidget("/menubar2")));
         w9.Events = ((Gdk.EventMask)(0));
         w9.Name = "menubar2";
         bindings["menubar2"] = w9;
         w8.Add(w9);
         Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(w8[w9]));
         w10.Position = 0;
         w10.Expand = false;
         w10.Fill = false;
         // Container child vbox1.Gtk.Box+BoxChild
         w1.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem action='open'/><toolitem action='paste'/></toolbar></ui>");
         Gtk.Toolbar w11 = ((Gtk.Toolbar)(w1.GetWidget("/toolbar1")));
         w11.ShowArrow = false;
         w11.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
         w11.IconSize = ((Gtk.IconSize)(2));
         w11.Events = ((Gdk.EventMask)(0));
         w11.Name = "toolbar1";
         bindings["toolbar1"] = w11;
         w8.Add(w11);
         Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(w8[w11]));
         w12.Position = 1;
         w12.Expand = false;
         w12.Fill = false;
         // Container child vbox1.Gtk.Box+BoxChild
         Gtk.TreeView w13 = new Gtk.TreeView();
         w13.CanFocus = true;
         w13.Events = ((Gdk.EventMask)(0));
         w13.Name = "treeview1";
         bindings["treeview1"] = w13;
         w8.Add(w13);
         Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(w8[w13]));
         w14.Position = 2;
         // Container child vbox1.Gtk.Box+BoxChild
         Gtk.Statusbar w15 = new Gtk.Statusbar();
         w15.Events = ((Gdk.EventMask)(0));
         w15.Name = "statusbar1";
         bindings["statusbar1"] = w15;
         w8.Add(w15);
         Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(w8[w15]));
         w16.Position = 3;
         w16.Expand = false;
         w16.Fill = false;
         bindings["vbox1"] = w8;
         cobj.Add(w8);
         cobj.DefaultWidth = 527;
         cobj.DefaultHeight = 300;
         bindings["Sosp.EarthOMeter.MainWindow"] = cobj;
         w9.Show();
         w11.Show();
         w13.Show();
         w15.Show();
         w8.Show();
         cobj.Show();
         cobj.DeleteEvent += ((Gtk.DeleteEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.DeleteEventHandler), cobj, "OnDeleteEvent")));
         w3.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "pasteActivated")));
         w4.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "openActivated")));
         w7.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "infoActivated")));
     }
     else {
         if ((id == "Sosp.EarthOMeter.About")) {
             Gtk.Window cobj = ((Gtk.Window)(obj));
//.........这里部分代码省略.........
开发者ID:BackupTheBerlios,项目名称:earthometer-svn,代码行数:101,代码来源:generated.cs

示例10: AddCreatePackageSection

		void AddCreatePackageSection (Gtk.VBox vbox, string label, PackagingProject parentProject, bool showCheck)
		{
			Gtk.VBox vboxNewPacks;
			Gtk.Widget hbox;
			if (showCheck) {
				Gtk.CheckButton check = new Gtk.CheckButton (label);
				check.Show ();
				vbox.PackStart (check, false, false, 0);
				
				AddBox (vbox, out hbox, out vboxNewPacks);
				check.Toggled += delegate {
					hbox.Visible = check.Active;
					if (!check.Active)
						DisableChecks (hbox);
				};
			} else {
				Gtk.Label lab = new Gtk.Label (label);
				lab.Show ();
				vbox.PackStart (lab, false, false, 0);
				AddBox (vbox, out hbox, out vboxNewPacks);
				hbox.Show ();
			}
			
			ICollection builders;
			if (creatingPackProject)
				builders = DeployService.GetPackageBuilders ();
			else
				builders = DeployService.GetSupportedPackageBuilders (entry);
			
			foreach (PackageBuilder pb in builders) {
				if (creatingPackProject) {
					pb.SetSolutionItem (parentFolder.ParentSolution.RootFolder);
					// Add all compatible projects
					foreach (SolutionItem e in parentFolder.ParentSolution.GetAllSolutionItems ()) {
						if (pb.CanBuild (e))
							pb.AddEntry (e);
					}
				} else {
					pb.SetSolutionItem (parentFolder, new SolutionItem [] { entry });
				}
				
				PackageBuilder[] defp = pb.CreateDefaultBuilders ();
				if (defp.Length == 0)
					continue;
				if (defp.Length == 1)
					AddPackageBuilder (vboxNewPacks, parentProject, defp[0]);
				else {
					Gtk.CheckButton checkBuilder = new Gtk.CheckButton (pb.Description);
					checkBuilder.Show ();
					vboxNewPacks.PackStart (checkBuilder, false, false, 0);
					Gtk.VBox vboxDefPacks;
					Gtk.Widget thbox;
					AddBox (vboxNewPacks, out thbox, out vboxDefPacks);
					checkBuilder.Toggled += delegate {
						thbox.Visible = checkBuilder.Active;
						if (!checkBuilder.Active)
							DisableChecks (thbox);
					};
					foreach (PackageBuilder dp in defp)
						AddPackageBuilder (vboxDefPacks, parentProject, dp);
				}
			}
		}
开发者ID:Kalnor,项目名称:monodevelop,代码行数:63,代码来源:PackagingFeatureWidget.cs

示例11: CreateLabel

		Gtk.Widget CreateLabel (NotebookTab tab)
		{
			Gtk.Label label = new Gtk.Label (tab.Label);
			label.Show ();
			return label;
		}
开发者ID:StEvUgnIn,项目名称:xwt,代码行数:6,代码来源:NotebookBackend.cs

示例12: AddRow

		private void AddRow (Gtk.Table table, Gtk.Widget widget, string labelText, uint row)
		{
			Gtk.Label l = new Gtk.Label (labelText);
			l.UseUnderline = true;
			l.Xalign = 0.0f;
			l.Show ();
			table.Attach (l, 0, 1, row, row + 1,
			              Gtk.AttachOptions.Fill,
			              Gtk.AttachOptions.Expand | Gtk.AttachOptions.Fill,
			              0, 0);

			widget.Show ();
			table.Attach (widget, 1, 2, row, row + 1,
			              Gtk.AttachOptions.Expand | Gtk.AttachOptions.Fill,
			              Gtk.AttachOptions.Expand | Gtk.AttachOptions.Fill,
			              0, 0);

			l.MnemonicWidget = widget;

			// TODO: Tooltips
		}
开发者ID:MichaelAquilina,项目名称:tomboy,代码行数:21,代码来源:WebSyncPreferencesWidget.cs

示例13: Update

		void Update (CommandInfo cmdInfo)
		{
			lastCmdInfo = cmdInfo;
			
			Gtk.Widget child = Child;
			if (child == null)
				return;
			
			updating = true;
			
			Gtk.Label accel_label = null;
			Gtk.Label label = null;
			
			if (!(child is Gtk.HBox)) {
				child = new Gtk.HBox (false, 0);
				accel_label = new Gtk.Label ("");
				accel_label.UseUnderline = false;
				accel_label.Xalign = 1.0f;
				accel_label.Show ();
				
				label = new Gtk.Label ("");
				label.UseUnderline = true;
				label.Xalign = 0.0f;
				label.Show ();
				
				((Gtk.Box) child).PackStart (label);
				((Gtk.Box) child).PackStart (accel_label);
				child.Show ();
				
				this.Remove (Child);
				this.Add (child);
			} else {
				accel_label = (Gtk.Label) ((Gtk.Box) child).Children[1];
				label = (Gtk.Label) ((Gtk.Box) child).Children[0];
			}
			
			if (cmdInfo.AccelKey != null)
				accel_label.Text = "    " + KeyBindingManager.BindingToDisplayLabel (cmdInfo.AccelKey, true);
			else
				accel_label.Text = String.Empty;
			
			if (cmdInfo.UseMarkup) {
				label.Markup = overrideLabel ?? cmdInfo.Text;
				label.UseMarkup = true;
			} else {
				label.Text = overrideLabel ?? cmdInfo.Text;
				label.UseMarkup = false;
			}
			
			label.UseUnderline = true;
			
			Sensitive = cmdInfo.Enabled;
			Visible = cmdInfo.Visible && (disabledVisible || cmdInfo.Enabled);
			Active = cmdInfo.Checked;
			Inconsistent = cmdInfo.CheckedInconsistent;
			
			updating = false;
		}
开发者ID:transformersprimeabcxyz,项目名称:monodevelop-1,代码行数:58,代码来源:CommandCheckMenuItem.cs

示例14: Build

 public static void Build(object obj, string id)
 {
     System.Collections.Hashtable bindings = new System.Collections.Hashtable();
     if ((id == "SharpTranslator.ReversibleCombos")) {
         Gtk.Bin cobj = ((Gtk.Bin)(obj));
         // Widget SharpTranslator.ReversibleCombos
         BinContainer.Attach(cobj);
         cobj.Events = ((Gdk.EventMask)(256));
         cobj.Name = "SharpTranslator.ReversibleCombos";
         // Container child SharpTranslator.ReversibleCombos.Gtk.Container+ContainerChild
         Gtk.HBox w1 = new Gtk.HBox();
         w1.Spacing = 5;
         w1.BorderWidth = ((uint)(5));
         w1.Events = ((Gdk.EventMask)(0));
         w1.Name = "hbox1";
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.Label w2 = new Gtk.Label();
         w2.LabelProp = "Source:";
         w2.Events = ((Gdk.EventMask)(0));
         w2.Name = "labelSource";
         bindings["labelSource"] = w2;
         w1.Add(w2);
         Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[w2]));
         w3.Position = 0;
         w3.Expand = false;
         w3.Fill = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.ComboBox w4 = Gtk.ComboBox.NewText();
         w4.Events = ((Gdk.EventMask)(0));
         w4.Name = "comboSource";
         bindings["comboSource"] = w4;
         w1.Add(w4);
         Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[w4]));
         w5.Position = 1;
         w5.Expand = false;
         w5.Fill = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.VSeparator w6 = new Gtk.VSeparator();
         w6.Events = ((Gdk.EventMask)(0));
         w6.Name = "vseparator1";
         bindings["vseparator1"] = w6;
         w1.Add(w6);
         Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[w6]));
         w7.Position = 2;
         w7.Expand = false;
         w7.Fill = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.CheckButton w8 = new Gtk.CheckButton();
         w8.Label = "reverse";
         w8.DrawIndicator = true;
         w8.BorderWidth = ((uint)(5));
         w8.CanFocus = true;
         w8.Events = ((Gdk.EventMask)(0));
         w8.Name = "checkbuttonReverse";
         bindings["checkbuttonReverse"] = w8;
         w1.Add(w8);
         Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(w1[w8]));
         w9.Position = 3;
         w9.Expand = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.VSeparator w10 = new Gtk.VSeparator();
         w10.Events = ((Gdk.EventMask)(0));
         w10.Name = "vseparator2";
         bindings["vseparator2"] = w10;
         w1.Add(w10);
         Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(w1[w10]));
         w11.Position = 4;
         w11.Expand = false;
         w11.Fill = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.Label w12 = new Gtk.Label();
         w12.LabelProp = "Target:";
         w12.Events = ((Gdk.EventMask)(0));
         w12.Name = "labelTarget";
         bindings["labelTarget"] = w12;
         w1.Add(w12);
         Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(w1[w12]));
         w13.Position = 5;
         w13.Expand = false;
         w13.Fill = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.ComboBox w14 = Gtk.ComboBox.NewText();
         w14.Events = ((Gdk.EventMask)(0));
         w14.Name = "comboTarget";
         bindings["comboTarget"] = w14;
         w1.Add(w14);
         Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(w1[w14]));
         w15.Position = 6;
         w15.Expand = false;
         w15.Fill = false;
         bindings["hbox1"] = w1;
         cobj.Add(w1);
         bindings["SharpTranslator.ReversibleCombos"] = cobj;
         w2.Show();
         w4.Show();
         w6.Show();
         w8.Show();
         w10.Show();
         w12.Show();
         w14.Show();
//.........这里部分代码省略.........
开发者ID:BackupTheBerlios,项目名称:sharptranslator-svn,代码行数:101,代码来源:generated.cs

示例15: MakeLabel

		// Utilities...

		static Gtk.Label MakeLabel (string label_text, params object[] args)
		{
			if (args.Length > 0)
				label_text = String.Format (label_text, args);

			Gtk.Label label = new Gtk.Label (label_text);

			label.UseMarkup = true;
			label.Justify = Gtk.Justification.Left;
			label.SetAlignment (0.0f, 0.5f);
			label.Show ();

			return label;
		}
开发者ID:oluc,项目名称:tomboy,代码行数:16,代码来源:PreferencesDialog.cs


注:本文中的Gtk.Label.Show方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。