Screen coordinates to chart coordinates

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
asupriya
Advanced
Posts: 179
Joined: Mon Dec 01, 2008 12:00 am

Screen coordinates to chart coordinates

Post by asupriya » Thu Aug 05, 2010 6:42 am

Hi,

I have a dragDrop event giving me System.Windows.Forms.DragEventArgs in screen coordinates. How can i convert it into chart coordinates (like the myChart.MouseMove event gives System.Windows.Forms.MouseEventArgs)?

Any help is greatly appreciated.

Regards,

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Screen coordinates to chart coordinates

Post by Sandra » Fri Aug 06, 2010 10:05 am

Hello Asupriya,

Sorry for delay. I think that you can use properties CalcYPos(), CalcPos(), CalcXPos() of Axes that returns chart coordinates.

I hope will helps.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply