Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
        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;
        }
Exemplo n.º 5
0
 public abstract void CreateControl(ToolBarHandler handler, int index);