internal _ToolStrip(AToolbar tb) { _tb = tb; //like in ctors of Form and ToolStripDropDown this.Visible = false; //else SetTopLevel(true) creates handle and tries to activate this.SetTopLevel(true); this.SuspendLayout(); this.AutoSize = false; this.Stretch = false; this.Dock = DockStyle.None; this.LayoutStyle = ToolStripLayoutStyle.Flow; this.GripStyle = ToolStripGripStyle.Hidden; this.Padding = default; //this.BackColor = SystemColors.ButtonFace; //default this.Renderer = t_renderer ??= new TBRenderer(); }
public void AddTB(AToolbar tb) { a.Add(tb); tb._ow = this; }
public SIZE GetPrevSize(AToolbar tb) => tb._followClientArea ? _prevClientSize : _prevSize;
public RECT GetCachedRect(AToolbar tb) => tb._followClientArea ? _clientRect : _rect;
public _SplitButton(AToolbar tb, string text, Action <AMenu> menu, Action <MTClickArgs> onClick) : base(text) { _tb = tb; _action = menu; _autoButtonAction = onClick == null && menu != null; }
public _MenuButton(AToolbar tb, string text, Action <AMenu> menu) : base(text) { _tb = tb; _action = menu; }