public void SetAttach(Point _point, bool _moveLabel) { int dx = _point.X - m_AttachLocation.X; int dy = _point.Y - m_AttachLocation.Y; m_AttachLocation = _point; if (_moveLabel) { m_Background.Move(dx, dy); } }
public void SetAttach(PointF p, bool moveLabel) { float dx = p.X - attachLocation.X; float dy = p.Y - attachLocation.Y; attachLocation = p; if (moveLabel) { background.Move(dx, dy); } }
public override void MoveDrawing(float dx, float dy, Keys modifierKeys, bool zooming) { background.Move(dx, dy); // The default behavior is to move the entire drawing as it is the standard thing to do for most calls of MoveDrawing. // To allow for moving only the text label while keeping the arrow end, we listen to the CTRL key. if ((modifierKeys & Keys.Control) != Keys.Control) { arrowEnd = arrowEnd.Translate(dx, dy); } RelocateEditbox(); }
public void MouseMove(float dx, float dy) { background.Move(dx, dy); }
public override void MoveDrawing(float dx, float dy, Keys modifierKeys, bool zooming) { mainBackground.Move(dx, dy); lblBackground.Move(dx, dy); }
public override void MoveDrawing(int _deltaX, int _deltaY, Keys _ModifierKeys) { m_MainBackground.Move(_deltaX, _deltaY); m_lblBackground.Move(_deltaX, _deltaY); }
public override void MoveDrawing(float dx, float dy, Keys modifierKeys, bool zooming) { background.Move(dx, dy); RelocateEditbox(); }
public override void MoveDrawing(int _deltaX, int _deltaY, Keys _ModifierKeys) { m_Background.Move(_deltaX, _deltaY); RelocateEditbox(); }