Example #1
0
            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();
            }
Example #2
0
 public void AddTB(AToolbar tb)
 {
     a.Add(tb);
     tb._ow = this;
 }
Example #3
0
 public SIZE GetPrevSize(AToolbar tb) => tb._followClientArea ? _prevClientSize : _prevSize;
Example #4
0
 public RECT GetCachedRect(AToolbar tb) => tb._followClientArea ? _clientRect : _rect;
Example #5
0
 public _SplitButton(AToolbar tb, string text, Action <AMenu> menu, Action <MTClickArgs> onClick) : base(text)
 {
     _tb               = tb;
     _action           = menu;
     _autoButtonAction = onClick == null && menu != null;
 }
Example #6
0
 public _MenuButton(AToolbar tb, string text, Action <AMenu> menu) : base(text)
 {
     _tb     = tb;
     _action = menu;
 }