Beispiel #1
0
 protected override void OnMouseUp(MouseEventArgs e)
 {
     this._down = false;
     HandleMove(e.X, e.Y);
     this.Parent.Controls.Remove(this._feedback);
     this.Cursor    = Cursors.Default;
     this._feedback = null;
 }
 protected override void OnMouseDown(MouseEventArgs e)
 {
     if (this.feedback == null){
         this.feedback = new HatchControl();
         this.Parent.Controls.Add(this.feedback);
         int index = 0;
         foreach (Control c in this.Parent.Controls){
             if (c == this)
                 break;
             index++;
         }
         this.Parent.Controls.SetChildIndex(this.feedback, index);
     }
     this.start = this.Bounds;
     this.feedback.Bounds = this.Bounds;
     this.pos = new Point(e.X, e.Y);
     this.down = true;
 }
Beispiel #3
0
 protected override void OnMouseDown(MouseEventArgs e)
 {
     if (this._feedback == null)
     {
         this._feedback = new HatchControl();
         this.Parent.Controls.Add(this._feedback);
         int index = 0;
         foreach (Control c in this.Parent.Controls)
         {
             if (c == this)
             {
                 break;
             }
             index++;
         }
         this.Parent.Controls.SetChildIndex(this._feedback, index);
     }
     this._start           = this.Bounds;
     this._feedback.Bounds = this.Bounds;
     this._pos             = new Point(e.X, e.Y);
     this._down            = true;
 }
 protected override void OnMouseUp(MouseEventArgs e)
 {
     this.down = false;
     HandleMove(e.X, e.Y);
     this.Parent.Controls.Remove(this.feedback);
     this.Cursor = Cursors.Default;
     this.feedback = null;
 }