Problem with zooming and keeping the aspect ratio
Problem with zooming and keeping the aspect ratio
Hi,
I have a problem zooming and keeping the aspect ratio. I use the mouse to zoom, dragging the mouse down and right. When I release the mouse button, it seams that the redraw function uses the mouse position as the lower right corner of the zoom area and not the lower right corner of the ZoomRect.
If I am positioning the mouse exactly at the lower right corner of the ZoomRect and release the mouse button, I get the expected zoom. If I am positioning the mouse away from the lower right corner of the ZoomRect and release the mouse button, I get a zoom using the mouse position as the lower right corner, not keeping the aspect ratio.
I am using TeeChart Pro v2013.09.131119
If you want, I can send you a test project showing the problem.
What can I do?
Regards
RCTB
I have a problem zooming and keeping the aspect ratio. I use the mouse to zoom, dragging the mouse down and right. When I release the mouse button, it seams that the redraw function uses the mouse position as the lower right corner of the zoom area and not the lower right corner of the ZoomRect.
If I am positioning the mouse exactly at the lower right corner of the ZoomRect and release the mouse button, I get the expected zoom. If I am positioning the mouse away from the lower right corner of the ZoomRect and release the mouse button, I get a zoom using the mouse position as the lower right corner, not keeping the aspect ratio.
I am using TeeChart Pro v2013.09.131119
If you want, I can send you a test project showing the problem.
What can I do?
Regards
RCTB
Re: Problem with zooming and keeping the aspect ratio
Hello,
Yes, it would be better if you could arrange a simple example project we can run as-is to reproduce the problem here. Well, in this case, where some interaction is needed, we may also need some step by step instructions.
I'm afraid I'm not sure to understand the instructions you provided. How can you release the mouse button in a different position than a ZoomRect corner? The ZoomRect is precisely the rectangle being drawn when you drag the mouse. Maybe you meant ChartRect instead of ZoomRect? The ChartRect is the rectangle limited by the chart axes; the area where the series are drawn.
Yes, it would be better if you could arrange a simple example project we can run as-is to reproduce the problem here. Well, in this case, where some interaction is needed, we may also need some step by step instructions.
I'm afraid I'm not sure to understand the instructions you provided. How can you release the mouse button in a different position than a ZoomRect corner? The ZoomRect is precisely the rectangle being drawn when you drag the mouse. Maybe you meant ChartRect instead of ZoomRect? The ChartRect is the rectangle limited by the chart axes; the area where the series are drawn.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Problem with zooming and keeping the aspect ratio
Hello Yeray.
I have added a zip file with two pictures to describe the problem and a little project to reproduce the problem.
RCTB
I have added a zip file with two pictures to describe the problem and a little project to reproduce the problem.
RCTB
Re: Problem with zooming and keeping the aspect ratio
Hi,
A bit strange. This is what I do and what I obtain: It looks correct, isn't it?
I'm using TeeChart v2013.09 and Delphi 7.
Could you please verify the paths are correct in your IDE? Just to make sure you are not using a previous installation.
A bit strange. This is what I do and what I obtain: It looks correct, isn't it?
I'm using TeeChart v2013.09 and Delphi 7.
Could you please verify the paths are correct in your IDE? Just to make sure you are not using a previous installation.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Problem with zooming and keeping the aspect ratio
Hi.
I forgot to mention that I use XE2.
I will first be back at the Delphi machine Tuesday and I will check the path as the first.
Your result looks as it shall, that is also what I get the most of the time but if I provokes the program just a little (not putting the mouse exact at the corner of the ZoomRect), it will give the result I was sending to you.
Regards
RCTB
I forgot to mention that I use XE2.
I will first be back at the Delphi machine Tuesday and I will check the path as the first.
Your result looks as it shall, that is also what I get the most of the time but if I provokes the program just a little (not putting the mouse exact at the corner of the ZoomRect), it will give the result I was sending to you.
Regards
RCTB
Re: Problem with zooming and keeping the aspect ratio
Hello,
I only see the red rectangle cut after the zoom if the zoom rectangle cuts the red rectangle, as I'd expect.
I've tried now your application with TeeChart Pro v2013.09 and XE2, and I still can see the complete red rectangle when I draw a zoom rectangle bigger than it.RCTB wrote:I forgot to mention that I use XE2.
I only see the red rectangle cut after the zoom if the zoom rectangle cuts the red rectangle, as I'd expect.
Ok.RCTB wrote:I will first be back at the Delphi machine Tuesday and I will check the path as the first.
I still don't understand what do you mean. Since the ZoomRect is the rectangle that is drawn from the point where you click down the left mouse button to the point where you release the left mouse button, I don't see how you can put the mouse in a different position to the ZoomRect corner.RCTB wrote:Your result looks as it shall, that is also what I get the most of the time but if I provokes the program just a little (not putting the mouse exact at the corner of the ZoomRect), it will give the result I was sending to you.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Problem with zooming and keeping the aspect ratio
Hello.
Now I have checked the library path and the only “Steema-path” I have is to TeeChart Pro 2013.
The problem is the KeepAspectRatio, when this is true the lower right corner of the ZoomRect is not following the mouse because it is keeping the aspectratio. Some times there is a big different between the lower right corner of the ZoomRect and the mouse and if you releases the mousebutton at this time you get the error.
Regards
RCTB
Now I have checked the library path and the only “Steema-path” I have is to TeeChart Pro 2013.
The problem is the KeepAspectRatio, when this is true the lower right corner of the ZoomRect is not following the mouse because it is keeping the aspectratio. Some times there is a big different between the lower right corner of the ZoomRect and the mouse and if you releases the mousebutton at this time you get the error.
Regards
RCTB
Re: Problem with zooming and keeping the aspect ratio
Hello,
Here is the picture I made to explain where the mouse down and mouse up actions are made: I've added it to the bug tracker system:
http://bugs.teechart.net/show_bug.cgi?id=554
I understood it now!RCTB wrote:The problem is the KeepAspectRatio, when this is true the lower right corner of the ZoomRect is not following the mouse because it is keeping the aspectratio. Some times there is a big different between the lower right corner of the ZoomRect and the mouse and if you releases the mousebutton at this time you get the error.
Here is the picture I made to explain where the mouse down and mouse up actions are made: I've added it to the bug tracker system:
http://bugs.teechart.net/show_bug.cgi?id=554
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Problem with zooming and keeping the aspect ratio
Hello.
Thank you for your help/reply, I look forward to a version with a fix .
Regards
RCTB
Thank you for your help/reply, I look forward to a version with a fix .
Regards
RCTB
Re: Problem with zooming and keeping the aspect ratio
Hi,
You can subscribe to the ticket to receive updates directly to your mail account.
You can subscribe to the ticket to receive updates directly to your mail account.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |