コード例 #1
0
        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);
        }
コード例 #2
0
 public override void InitLayout(object child, System.Windows.Forms.BoundsSpecified specified)
 {
     base.InitLayout(child, specified);
 }
コード例 #3
0
ファイル: Form1.cs プロジェクト: mobexlabs/winformsmagic
 protected override void ScaleControl(System.Drawing.SizeF factor, System.Windows.Forms.BoundsSpecified specified)
 {
     scaleFactor = factor;
     base.ScaleControl(factor, specified);
 }
コード例 #4
0
            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);
            }