Page 1 of 1

Scrollpager and zoom

Posted: Fri Feb 21, 2014 11:58 am
by 15654539
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

Re: Scrollpager and zoom

Posted: Fri Feb 21, 2014 12:32 pm
by Christopher
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;
        }

Re: Scrollpager and zoom

Posted: Fri Feb 21, 2014 12:51 pm
by 15654539
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

Re: Scrollpager and zoom

Posted: Fri Feb 21, 2014 1:06 pm
by Christopher
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.

Re: Scrollpager and zoom

Posted: Wed Jun 25, 2014 1:41 pm
by 15654539
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

Re: Scrollpager and zoom

Posted: Wed Jun 25, 2014 1:51 pm
by narcis
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.

Re: Scrollpager and zoom

Posted: Wed Jun 25, 2014 1:56 pm
by 15654539
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

Re: Scrollpager and zoom

Posted: Wed Jun 25, 2014 2:59 pm
by narcis
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.