public override void CreateControl(ToolBarHandler handler, int index) { Gtk.Toolbar tb = handler.Control; Control = new Gtk.SeparatorToolItem(); Control.ShowAll(); Control.NoShowAll = true; Control.Visible = Visible; SetType(); tb.Insert(Control, index); }
public override void CreateControl(ToolBarHandler handler, int index) { Gtk.Toolbar tb = handler.Control; Control = new Gtk.ToolButton(GtkImage, Text); Control.IsImportant = true; Control.Sensitive = Enabled; Control.TooltipText = this.ToolTip; Control.ShowAll(); Control.NoShowAll = true; Control.Visible = Visible; //control.CanFocus = false; // why is this disabled and not true??? tb.Insert(Control, index); Control.Clicked += Connector.HandleClicked; }
public override void CreateControl(ToolBarHandler handler, int index) { Gtk.Toolbar tb = handler.Control; Control = new Gtk.ToolButton(GtkImage, Text); Control.IsImportant = true; Control.Sensitive = Enabled; //Control.TooltipText = this.ToolTip; //control.CanFocus = false; tb.Insert(Control, index); if (tb.Visible) { Control.ShowAll(); } Control.Clicked += Connector.HandleClicked; }
public override void CreateControl(ToolBarHandler handler, int index) { Gtk.Toolbar tb = handler.Control; Control = new Gtk.ToggleToolButton(); Control.Active = ischecked; Control.Label = Text; Control.TooltipText = this.ToolTip; Control.IconWidget = GtkImage; Control.Sensitive = Enabled; Control.CanFocus = false; Control.IsImportant = true; Control.ShowAll(); Control.NoShowAll = true; Control.Visible = Visible; tb.Insert(Control, index); Control.Toggled += Connector.HandleToggled; }
public abstract void CreateControl(ToolBarHandler handler, int index);