Page 1 of 1
Zoom tool sticking
Posted: Mon Jul 25, 2011 4:36 pm
by 15657203
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?
Re: Zoom tool sticking
Posted: Tue Jul 26, 2011 2:54 pm
by 10050769
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,
Re: Zoom tool sticking
Posted: Wed Jul 27, 2011 11:10 pm
by 15657203
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?
Re: Zoom tool sticking
Posted: Fri Jul 29, 2011 3:01 pm
by 10050769
Hello elbay,
I have investigated about your request and we try to answer asap.
Thanks,
Re: Zoom tool sticking
Posted: Mon Aug 15, 2011 8:23 pm
by 15657203
Any updates on a solution to this issue?
Re: Zoom tool sticking
Posted: Tue Aug 16, 2011 12:18 pm
by 10050769
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,
Re: Zoom tool sticking
Posted: Tue Aug 16, 2011 1:57 pm
by 15657203
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?
Re: Zoom tool sticking
Posted: Wed Aug 17, 2011 10:04 am
by 10050769
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,