This is a migrated thread and some comments may be shown as answers.

RadDiagram PointToScreen and PointToClient accuracy

2 Answers 113 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Hocine
Top achievements
Rank 1
Hocine asked on 23 Jun 2020, 06:56 PM

Hi,

 

I"m working with RadDiagram where I added several RadDiagramContainerShape and RadDiagramShape. The main container is a RadDiagramContainerShape and it is positioned at (0, 0) according to the RadDiagram.

 

When I click on the top left corner of the main container, at the red dot in the attached image, the button click is (41,39). Then I use PointToClient to get the position in the RadDiagram and I have (35, -40), knowing that it is supposed to be around (0, 0). Then to make sure of this I calculated the  PointToScreen using the main container location which is (0, 0). The result was (6, 79), but it is supposed to be around the button click (41,39).

 

In addition, when I drag and drop shapes to my main container it never goes to the cursor position because all what is mentioned above is not accurate.

 

Is this normal, and what can I do to fix this?

Thanks in advance for your help!

2 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 26 Jun 2020, 08:38 AM

Hi Hocine,

I am not aware of PointToClient function in Silverlight or RadDiagram for Silverlight. Could you please ensure the product of this ticket is correct ? 
If it is WinForms, we will change it accordingly and redirect it t the responsible team. Thank you for your understanding.

Regards,
Petar Mladenov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Hocine
Top achievements
Rank 1
answered on 26 Jun 2020, 12:17 PM

Hi Petar,

 

I noticed my mistake a while after I created a thread. I've a created another one in the correct in WinForms.

 

Thanks for your reply.

Tags
Diagram
Asked by
Hocine
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Hocine
Top achievements
Rank 1
Share this question
or