Scrollpager and zoom

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

Scrollpager and zoom

Post by acastro » Fri Feb 21, 2014 11:58 am

When we try to do zoom with the scrollpager activated, the square which appears when you do click to do zoom is not well posicionated.
By example
http://193.145.251.126/pnp/files/bpYFbf ... Scroll.zip

If you press button10 and then button1, and try to do zoom the squuare is not well positionated, but if the window is maximized it is well.

Thanks

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Scrollpager and zoom

Post by Christopher » Fri Feb 21, 2014 12:32 pm

wakeup wrote:If you press button10 and then button1, and try to do zoom the squuare is not well positionated, but if the window is maximized it is well.
As a workaround to this, try:

Code: Select all

        private void Form1_Load(object sender, EventArgs e)
        {
            tChart1.Aspect.View3D = false;
            tChart1.Axes.Bottom.Labels.DateTimeFormat = "dd/MM/yyyy HH:mm";

            tChart1.Zoom.FullRepaint = true;
            tChart1.Zoom.Pen.Color = Color.Red;
        }
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

Re: Scrollpager and zoom

Post by acastro » Fri Feb 21, 2014 12:51 pm

Thanks it runs.

Another question... When I activate the scrollpager the zoom direction is changed from both to horizontal. Why this behaviour? If I set manually again to both it seems to run well also with scrollpager...

Thanks

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Scrollpager and zoom

Post by Christopher » Fri Feb 21, 2014 1:06 pm

wakeup wrote:Another question... When I activate the scrollpager the zoom direction is changed from both to horizontal. Why this behaviour? If I set manually again to both it seems to run well also with scrollpager...
This behaviour is by design. The rationale behind this behaviour is that only the horizontal movements of the top chart are reflected in the bottom chart (the 'scrollpager' one). As you have discovered, this default behaviour can be overwritten.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

Re: Scrollpager and zoom

Post by acastro » Wed Jun 25, 2014 1:41 pm

Christopher wrote:
wakeup wrote:If you press button10 and then button1, and try to do zoom the squuare is not well positionated, but if the window is maximized it is well.
As a workaround to this, try:

Code: Select all

        private void Form1_Load(object sender, EventArgs e)
        {
            tChart1.Aspect.View3D = false;
            tChart1.Axes.Bottom.Labels.DateTimeFormat = "dd/MM/yyyy HH:mm";

            tChart1.Zoom.FullRepaint = true;
            tChart1.Zoom.Pen.Color = Color.Red;
        }
Sometimes I see the efect of the screenshot, and I noticed it is due to FullRepaint. Can I avoid this effect dupplicating/triplicationg... the square when using zoom?
Thanks
Attachments
fullrepaint.png
fullrepaint.png (42.48 KiB) Viewed 13985 times

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

Re: Scrollpager and zoom

Post by Narcís » Wed Jun 25, 2014 1:51 pm

Hi wakeup,

Can you please attach a simple example project we can run "as-is" and let us know the exact steps we should follow to reproduce the problem here? The link in your first post is no longer valid.

Thanks in advance.
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

acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

Re: Scrollpager and zoom

Post by acastro » Wed Jun 25, 2014 1:56 pm

http://193.145.251.126/pnp/files/ZhRPwi ... chart3.zip

Press button1, and then move the mouse with left button clicked to set the zoom

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

Re: Scrollpager and zoom

Post by Narcís » Wed Jun 25, 2014 2:59 pm

Hi wakeup,

This is a bug, I'm afraid. Please feel free to add it to bugzilla. Doing so you'll receive automatic notifications on any issue update.

Thanks in advance.
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