コード例 #1
0
 public override void CreateControl(ToolBarHandler handler)
 {
     Gtk.Toolbar tb = handler.Control;
     Control        = new Gtk.SeparatorToolItem();
     Control.Expand = expand;
     tb.Insert(Control, -1);
     if (tb.Visible)
     {
         Control.ShowAll();
     }
 }
コード例 #2
0
        public override void CreateControl(ToolBarHandler handler)
        {
            Gtk.Toolbar tb = handler.Control;

            Control             = new Gtk.ToolButton(Image, this.Text);
            Control.Clicked    += button_Clicked;
            Control.IsImportant = true;
            Control.Sensitive   = this.Enabled;
            //Control.TooltipText = this.ToolTip;
            //control.CanFocus = false;
            tb.Insert(Control, -1);
            if (tb.Visible)
            {
                Control.ShowAll();
            }
        }
コード例 #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;
        }
コード例 #4
0
ファイル: CheckToolItemHandler.cs プロジェクト: sami1971/Eto
        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;
            tb.Insert(Control, index);
            if (tb.Visible)
            {
                Control.ShowAll();
            }
        }
コード例 #5
0
 public abstract void CreateControl(ToolBarHandler handler);
コード例 #6
0
 public override void CreateControl(ToolBarHandler handler)
 {
     Control        = new Gtk.SeparatorToolItem();
     Control.Expand = expand;
 }
コード例 #7
0
ファイル: ToolItemHandler.cs プロジェクト: sami1971/Eto
 public abstract void CreateControl(ToolBarHandler handler, int index);