개정판 e6a9ddaf
issue #923: fixed ControlType.ChainLine drawing
Change-Id: Iee05d32624f7260c51cf31dc4827fcee6085be55
KCOM/Controls/AdornerFinal.xaml.cs | ||
---|---|---|
1301 | 1301 |
#region 텍스트 |
1302 | 1302 |
if (item.Drawingtype == ControlType.TextControl) |
1303 | 1303 |
{ |
1304 |
Point dx = MathSet.RotateAbout(new Point(0, 0), new Point(e.HorizontalChange, e.VerticalChange), trRotate.Angle); |
|
1305 |
Canvas.SetLeft((item.DrawingData as TextControl), Canvas.GetLeft((item.DrawingData as TextControl)) + dx.X); |
|
1306 |
Canvas.SetTop((item.DrawingData as TextControl), Canvas.GetTop((item.DrawingData as TextControl)) + dx.Y); |
|
1307 |
(item.DrawingData as TextControl).StartPoint = |
|
1308 |
new Point(Canvas.GetLeft((item.DrawingData as TextControl)) + e.HorizontalChange / 5, Canvas.GetTop((item.DrawingData as TextControl)) + e.VerticalChange / 5); |
|
1309 |
(item.DrawingData as TextControl).EndPoint = (item.DrawingData as TextControl).StartPoint; |
|
1310 |
|
|
1311 |
// Point endPointV = new Point(Data.Bounds.Right, Data.Bounds.Bottom); |
|
1312 |
//Point middle = MathSet.getMiddlePoint((item.DrawingData as TextControl).StartPoint, (item.DrawingData as TextControl).EndPoint); |
|
1313 |
|
|
1314 |
// TextControlChanger(); |
|
1304 |
(item.DrawingData as TextControl).Move(e.HorizontalChange, e.VerticalChange); |
|
1315 | 1305 |
} |
1316 | 1306 |
#endregion |
1317 | 1307 |
#region 날짜 |
내보내기 Unified diff