public ToolStripPanelRow (ToolStripPanel parent)
		{
			this.bounds = Rectangle.Empty;
			this.controls = new List<Control> ();
			this.layout_engine = new DefaultLayout ();
			this.parent = parent;
		}
 public ToolStrip()
 {
     this.hwndThatLostFocus = IntPtr.Zero;
     this.lastInsertionMarkRect = Rectangle.Empty;
     this.toolStripGripStyle = ToolStripGripStyle.Visible;
     this.activeDropDowns = new ArrayList(1);
     this.currentRendererType = typeof(System.Type);
     this.toolStripDropDownDirection = ToolStripDropDownDirection.Default;
     this.largestDisplayedItemSize = Size.Empty;
     this.imageScalingSize = new Size(0x10, 0x10);
     this.mouseEnterWhenShown = InvalidMouseEnter;
     base.SuspendLayout();
     this.CanOverflow = true;
     this.TabStop = false;
     this.MenuAutoExpand = false;
     base.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.SupportsTransparentBackColor, true);
     base.SetStyle(ControlStyles.Selectable, false);
     this.SetToolStripState(0xc0, true);
     base.SetState2(0x810, true);
     ToolStripManager.ToolStrips.Add(this);
     this.layoutEngine = new ToolStripSplitStackLayout(this);
     this.Dock = this.DefaultDock;
     this.AutoSize = true;
     this.CausesValidation = false;
     Size defaultSize = this.DefaultSize;
     base.SetAutoSizeMode(AutoSizeMode.GrowAndShrink);
     this.ShowItemToolTips = this.DefaultShowItemToolTips;
     base.ResumeLayout(true);
 }
예제 #3
0
			public MockControl (LayoutEngine layoutEngine)
			{
				_layoutEngine = layoutEngine;
			}