Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Re: Diagram.HitTestAdjustmentHandles Event (Read 2432 times)
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Diagram.HitTestAdjustmentHandles Event
Jan 10th, 2012 at 2:33pm
Print Post  
Hi,

In the general case, the points at coordinates (left + right) / 3 and (top + bottom) / 3 do not lie inside the rectangle (e.g. imagine what happens with left=30 and right=31). I suppose you need the following:

Code
Select All
RectangleF r = shapeNode.Bounds;
float nX = r.X + r.Width / 3;
float nY = r.Y + r.Height / 3;
float mX = r.X + r.Width * 2 / 3;
float mY = r.Y + r.Height * 2 / 3; 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Forum Admin
YaBB Administrator
*****
Offline


Rock and Roll

Posts: 685
Joined: Apr 6th, 2003
Re: Diagram.HitTestAdjustmentHandles Event
Reply #1 - Jan 10th, 2012 at 3:00pm
Print Post  
This Topic was moved here from Discussion [move by] Forum Admin.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint