protected override void SetBoundsCore(int x, int y, int width, int height, System.Windows.Forms.BoundsSpecified specified) { width = Math.Max(width, 20); height = Math.Max(height, 6); int calcwidth = width; if (FillStyle == FillStyles.Dashed) { calcwidth = (Convert.ToInt32(calcwidth / 8) * 8) + 1; } base.SetBoundsCore(x, y, calcwidth, height, specified); }
public override void InitLayout(object child, System.Windows.Forms.BoundsSpecified specified) { base.InitLayout(child, specified); }
protected override void ScaleControl(System.Drawing.SizeF factor, System.Windows.Forms.BoundsSpecified specified) { scaleFactor = factor; base.ScaleControl(factor, specified); }
protected override void SetBoundsCore(int x, int y, int width, int height, swf.BoundsSpecified specified) { // ensure that the controls are left-aligned when the space available is smaller than the minimum size // of this control var curSize = GetMinSize(); width = Math.Max(curSize.Width, width); height = Math.Max(curSize.Height, height); base.SetBoundsCore(x, y, width, height, specified); }