public override ToolItem GenerateToolBarItem(Generator generator, ToolBarTextAlign textAlign) { var tbb = new SeparatorToolItem(generator) { Type = ToolBarType }; if (!string.IsNullOrEmpty (ToolBarItemStyle)) tbb.Style = ToolBarItemStyle; return tbb; }
/// <summary> /// CSharpToolBarクラスのインスタンスを初期化 /// </summary> public CSharpToolBar() { // // TODO: コンストラクタ ロジックをここに追加してください。 // buttons = new CSharpToolBarButtonCollection(this); appearance = CSharpToolBarAppearance.Normal; borderStyle = Border3DStyle.Adjust; textAlign = ToolBarTextAlign.Underneath; imageList = null; buttonSize = new Size(80, 25); autoToolBarSize = false; autoAdjustSize = true; wrappable = true; allowDragButton = true; // ちらつきを押さえるために各スタイルを設定 SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.DoubleBuffer | ControlStyles.UserPaint, true); //this.BackColor = Color.Transparent; //Dock = DockStyle.Top; }
public override ToolBarItem GenerateToolBarItem(ActionItem actionItem, Eto.Generator generator, ToolBarTextAlign textAlign) { var item = base.GenerateToolBarItem (actionItem, generator, textAlign); var tb = (NSToolbarItem)item.ControlObject; tb.Target = null; tb.Action = Selector; return item; }
public override ToolBarItem GenerateToolBarItem(Generator generator, ToolBarTextAlign textAlign) { var item = Action.GenerateToolBarItem(this, generator, textAlign); if (item != null) { if (!string.IsNullOrEmpty (ToolBarItemStyle)) item.Style = ToolBarItemStyle; } return item; }
public override ToolItem GenerateToolBarItem(Generator generator, ToolBarTextAlign textAlign) { var item = Action.GenerateToolBarItem(this, generator, textAlign); if (item != null) { if (!string.IsNullOrEmpty(ToolBarItemStyle)) { item.Style = ToolBarItemStyle; } } return(item); }
public override ToolItem GenerateToolBarItem(Generator generator, ToolBarTextAlign textAlign) { var tbb = new SeparatorToolItem(generator) { Type = ToolBarType }; if (!string.IsNullOrEmpty(ToolBarItemStyle)) { tbb.Style = ToolBarItemStyle; } return(tbb); }
public override ToolBarItem GenerateToolBarItem(ActionItem actionItem, Generator generator, ToolBarTextAlign textAlign) { ToolBarButton tbb = new ToolBarButton(generator); tbb.ID = this.ID; tbb.Enabled = this.Enabled; if (ShowLabel || actionItem.ShowLabel || textAlign != ToolBarTextAlign.Right) tbb.Text = ToolBarText; //Console.WriteLine("Adding toolbar {0}", ToolBarText); if (Image != null) tbb.Image = Image; if (!string.IsNullOrEmpty (ToolBarItemStyle)) tbb.Style = ToolBarItemStyle; new ToolBarConnector(this, tbb); return tbb; }
public override ToolItem GenerateToolBarItem(ActionItem actionItem, Generator generator, ToolBarTextAlign textAlign) { var tbb = new CheckToolItem(generator); tbb.ID = ID; tbb.Checked = Checked; tbb.Enabled = Enabled; if (ShowLabel || actionItem.ShowLabel || textAlign != ToolBarTextAlign.Right) { tbb.Text = ToolBarText; } if (Image != null) { tbb.Image = Image; } if (!string.IsNullOrEmpty(ToolBarItemStyle)) { tbb.Style = ToolBarItemStyle; } new ToolBarConnector(this, tbb); return(tbb); }
public override ToolItem GenerateToolBarItem(ActionItem actionItem, Generator generator, ToolBarTextAlign textAlign) { throw new NotImplementedException("cannot put radio buttons on the toolbar just yet"); }
public abstract ToolBarItem GenerateToolBarItem(ActionItem actionItem, Generator generator, ToolBarTextAlign textAlign);
public override ToolItem GenerateToolBarItem(Generator generator, ToolBarTextAlign textAlign) { return null; }
public override ToolBarItem GenerateToolBarItem(ActionItem actionItem, Generator generator, ToolBarTextAlign textAlign) { ToolBarButton tbb = new ToolBarButton(generator); tbb.ID = this.ID; tbb.Enabled = this.Enabled; if (ShowLabel || actionItem.ShowLabel || textAlign != ToolBarTextAlign.Right) { tbb.Text = ToolBarText; } //Console.WriteLine("Adding toolbar {0}", ToolBarText); if (Image != null) { tbb.Image = Image; } if (!string.IsNullOrEmpty(ToolBarItemStyle)) { tbb.Style = ToolBarItemStyle; } new ToolBarConnector(this, tbb); return(tbb); }
public abstract ToolItem GenerateToolBarItem(Generator generator, ToolBarTextAlign textAlign);
public override ToolBarItem GenerateToolBarItem(ActionItem actionItem, Eto.Generator generator, ToolBarTextAlign textAlign) { var item = base.GenerateToolBarItem(actionItem, generator, textAlign); var tb = (NSToolbarItem)item.ControlObject; tb.Target = null; tb.Action = Selector; return(item); }
public override ToolBarItem GenerateToolBarItem(ActionItem actionItem, Generator generator, ToolBarTextAlign textAlign) { throw new NotImplementedException("cannot put radio buttons on the toolbar just yet"); }
public override ToolItem GenerateToolBarItem(ActionItem actionItem, Generator generator, ToolBarTextAlign textAlign) { var tbb = new CheckToolItem(generator); tbb.ID = ID; tbb.Checked = Checked; tbb.Enabled = Enabled; if (ShowLabel || actionItem.ShowLabel || textAlign != ToolBarTextAlign.Right) tbb.Text = ToolBarText; if (Image != null) tbb.Image = Image; if (!string.IsNullOrEmpty (ToolBarItemStyle)) tbb.Style = ToolBarItemStyle; new ToolBarConnector(this, tbb); return tbb; }
public override ToolItem GenerateToolBarItem(Generator generator, ToolBarTextAlign textAlign) { return(null); }