XScreenToValue and YScreenToValue

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
leaf
Newbie
Newbie
Posts: 37
Joined: Fri Nov 15, 2002 12:00 am

XScreenToValue and YScreenToValue

Post by leaf » Mon Oct 10, 2005 2:37 pm

I am using the functions XScreenToValue and YScreenToValue to calculate a set indexes into my data for a box that is drawn on the screen using mouse clicks and movements. Is there a function that performs the opposite calculation? I need to recalculate X and Y pixel locations to redraw the box when the screen is resized.

Thanks in advance.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Oct 10, 2005 2:44 pm

Hi leaf,

Yes, you could try using CalcXPosValue and CalcYPosValue.
Best Regards,
Narcís Calvet / 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