Zoom tool sticking

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
elby
Newbie
Newbie
Posts: 11
Joined: Fri Sep 10, 2010 12:00 am

Zoom tool sticking

Post by elby » Mon Jul 25, 2011 4:36 pm

We are launching a dialog when the user double clicks on the chart. The zooming tool appears to stick.

I have attached a sample to reproduce the issue.

Steps:

Launch the dialog
Double click (a blank window will appear)
Then hover back to the chart area.
The zoom indicator is showing but the area is not the focused window.

What do I need to do?
Attachments
SteemaZoomIssue.zip
(42.13 KiB) Downloaded 377 times

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

Re: Zoom tool sticking

Post by Sandra » Tue Jul 26, 2011 2:54 pm

Hello elby,

I can do many test and I found that using area.Chart.Zoom.Allow=false seems that the problem is solved and works fine for me. Can you please, tell us if using previous suggestion the problem is solved for you?

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

elby
Newbie
Newbie
Posts: 11
Joined: Fri Sep 10, 2010 12:00 am

Re: Zoom tool sticking

Post by elby » Wed Jul 27, 2011 11:10 pm

HI. Sandra,

I tried this solution but we want the zooming tool we just wanted to realize that it is not infocus when the other window has focus so don't try to perform a zoom at that time.

I have tried to listen to IsMouseDirectlyOverChanged and toggle the zoom option as suggested but that doesn't seem to work either.

Any advice on how to keep the feature but let it be smart enough to know that is is not the top most an not focused?

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

Re: Zoom tool sticking

Post by Sandra » Fri Jul 29, 2011 3:01 pm

Hello elbay,

I have investigated about your request and we try to answer asap.

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

elby
Newbie
Newbie
Posts: 11
Joined: Fri Sep 10, 2010 12:00 am

Re: Zoom tool sticking

Post by elby » Mon Aug 15, 2011 8:23 pm

Any updates on a solution to this issue?

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

Re: Zoom tool sticking

Post by Sandra » Tue Aug 16, 2011 12:18 pm

Hello elbay,

Sorry for the delay. After doing many test, we consider your problem, as strange behavior in the WPF, when you use DoubleClick and zoom. I don't have many idees to solve it, except following workarounds, that I think can serve you, to solve your problem:

1.- Change the mouse button with you do zoom, for example, doing scroll with Left button and zoom with right button, to avoid that when you double click zoom is activated.
2.-The easiest solution, for me is do DoubleClid with Right Button of Mouse to open new Window.

In second case you can use a similar code as next:

Code: Select all

void area_MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {

            if (_window == null)
            {
                if (e.RightButton == System.Windows.Input.MouseButtonState.Pressed)
                {
   
                    _window = new Window();
                    _window.Left = _window.Left + 200;
                    _window.Width = 500;
                    _window.Height = 300;
                    _window.Show();
                   
                    _window.Closing += new CancelEventHandler(window_Closing);
                }
            }
        }
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

elby
Newbie
Newbie
Posts: 11
Joined: Fri Sep 10, 2010 12:00 am

Re: Zoom tool sticking

Post by elby » Tue Aug 16, 2011 1:57 pm

Thanks Sandra,

The problem is using the R-click will make a unconsistency with the rest of our application where the user performs a left double click to open other editors in our application.

Will development continue to search for a solution for this issue? Or is that the best solution available?

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

Re: Zoom tool sticking

Post by Sandra » Wed Aug 17, 2011 10:04 am

Hello elby,

At the moment, I think this problem have to relate with bug (TW16015460). I have added this as extra information in this bug and increase its severity to be tried to fix it for next maintenance releases of TeeChart.Net.

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