Esempio n. 1
0
        private void AddResizeControls()
        {
            rTopLeft = new ResizeBox(DragHandleAnchor.TopLeft, this);
            rTopCenter = new ResizeBox(DragHandleAnchor.TopCenter, this);
            rTopRight = new ResizeBox(DragHandleAnchor.TopRight, this);
            rMiddleRight = new ResizeBox(DragHandleAnchor.MiddleRight, this);
            rMiddleLeft = new ResizeBox(DragHandleAnchor.MiddleLeft, this);
            rBottomRight = new ResizeBox(DragHandleAnchor.BottomRight, this);
            rBottomCenter = new ResizeBox(DragHandleAnchor.BottomCenter, this);
            rBottomLeft = new ResizeBox(DragHandleAnchor.BottomLeft, this);

            this.Controls.Add(rTopLeft);
            this.Controls.Add(rTopCenter);
            this.Controls.Add(rTopRight);
            this.Controls.Add(rMiddleRight);
            this.Controls.Add(rMiddleLeft);
            this.Controls.Add(rBottomRight);
            this.Controls.Add(rBottomCenter);
            this.Controls.Add(rBottomLeft);
        }
Esempio n. 2
0
        private void AddResizeControls()
        {
            rTopLeft      = new ResizeBox(DragHandleAnchor.TopLeft, this);
            rTopCenter    = new ResizeBox(DragHandleAnchor.TopCenter, this);
            rTopRight     = new ResizeBox(DragHandleAnchor.TopRight, this);
            rMiddleRight  = new ResizeBox(DragHandleAnchor.MiddleRight, this);
            rMiddleLeft   = new ResizeBox(DragHandleAnchor.MiddleLeft, this);
            rBottomRight  = new ResizeBox(DragHandleAnchor.BottomRight, this);
            rBottomCenter = new ResizeBox(DragHandleAnchor.BottomCenter, this);
            rBottomLeft   = new ResizeBox(DragHandleAnchor.BottomLeft, this);

            this.Controls.Add(rTopLeft);
            this.Controls.Add(rTopCenter);
            this.Controls.Add(rTopRight);
            this.Controls.Add(rMiddleRight);
            this.Controls.Add(rMiddleLeft);
            this.Controls.Add(rBottomRight);
            this.Controls.Add(rBottomCenter);
            this.Controls.Add(rBottomLeft);
        }