I am using TChart's OnDblClick event in C++ to launch the editor using ShowEditor(). This works fine. However, when I close the editor, the chart is now waiting for a second click to define a zoom window. On clicking the chart goes into zoom mode.
The chart has obviously recorded the first click of the dblclick as a mouse down event and on return from the editor is waiting for a mouseup event to complete the definition of the zoom area.
How do I stop this irritating behaviour?
OnDblClick event
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi MoGulZA,
You can try disabling zoom before opening the editor and enable it again after closing it, for example:
You can try disabling zoom before opening the editor and enable it again after closing it, for example:
Code: Select all
TChart1.Zoom.Enable = False
Best Regards,
Narcís Calvet / 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 |
OnDblClick event
Hi Narcis,
I've tried that ... does not work ..... Any other suggestions?
I've tried that ... does not work ..... Any other suggestions?
Hi,
how about using :
void CNeilDlg::OnOnDblClickTchart1()
{
m_chart.ShowEditor(-1);
}
?
how about using :
void CNeilDlg::OnOnDblClickTchart1()
{
m_chart.ShowEditor(-1);
}
?
Pep Jorge
http://support.steema.com
http://support.steema.com