Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Selection.ContainsPoint(PointF) (Read 1541 times)
Alex
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 60
Joined: Nov 21st, 2006
Selection.ContainsPoint(PointF)
Aug 29th, 2007 at 8:04am
Print Post  
Hello,

I think I found a bug in the Selection.ContainsPoint(PointF)-method.

I thoroughly debugged again and again and I think the coordinates are calculated wrong.

Code
Select All
PointF tmp = diagramView.ClientToDoc(e.Location);
if (diagram.Selection.ContainsPoint(tmp))
{
  if(e.Button == MouseButtons.Right)
    contextMenu.Show(Parent, Parent.PointToClient(MousePosition));
 } 



I checked the x and y coords in the Selection and the point of the mouse, it should return true, but it doesn't.

Maybe I missed something, since the ContainsPoint-method is not documented yet (version of 28.8.07).

Best regards,

Alex
« Last Edit: Aug 29th, 2007 at 9:40am by Alex »  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Selection.ContainsPoint(PointF)
Reply #1 - Aug 29th, 2007 at 10:44am
Print Post  
Hi,

Selection.ContainsPoint returns true only if there is a selected item at the specified position.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint