OnDblClick event

TeeChart for ActiveX, COM and ASP
Post Reply
MoGuLZA
Newbie
Newbie
Posts: 3
Joined: Mon Sep 13, 2004 4:00 am

OnDblClick event

Post by MoGuLZA » Wed Dec 05, 2007 10:04 am

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? :evil:

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

Post by Narcís » Wed Dec 05, 2007 11:42 am

Hi MoGulZA,

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
Image Image Image Image Image Image
Instructions - How to post in this forum

MoGuLZA
Newbie
Newbie
Posts: 3
Joined: Mon Sep 13, 2004 4:00 am

OnDblClick event

Post by MoGuLZA » Fri Dec 07, 2007 11:51 am

Hi Narcis,

I've tried that ... does not work ..... Any other suggestions?

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Dec 10, 2007 12:09 pm

Hi,
how about using :
void CNeilDlg::OnOnDblClickTchart1()
{
m_chart.ShowEditor(-1);
}

?

MoGuLZA
Newbie
Newbie
Posts: 3
Joined: Mon Sep 13, 2004 4:00 am

Post by MoGuLZA » Mon Dec 10, 2007 1:59 pm

Thanks! That worked !! Don't understand why there should be a difference but I'm sure you'll sort that out !!!

Post Reply