After Closing ChartEditor have Zoom active

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Alex
Newbie
Newbie
Posts: 10
Joined: Fri Nov 15, 2002 12:00 am

After Closing ChartEditor have Zoom active

Post by Alex » Tue Jul 06, 2004 4:37 pm

Using TeeChart 6.01 on BC++ Builder 6.
It opens Chart Editor with this procedure:
void __fastcall TBeamViewXY::ChartDblClick(TObject *Sender)
{
ChartEditor->Execute();
}


And after closing Chart Editor, the Zoom Tool is active and can´t quit it until I make the zoom, chart is zoomed and dumb user doesn´t know how to zoom back.
:?: How can I desactivate zoom after closing my chart editor?

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

Post by Pep » Tue Jul 06, 2004 6:20 pm

Hi Alex,

you can solve this by adding the following line after the Execute is called :
Chart1.CancelMouse := True;

Alex
Newbie
Newbie
Posts: 10
Joined: Fri Nov 15, 2002 12:00 am

Gracias, pero el problema sigue...

Post by Alex » Wed Jul 07, 2004 8:45 am

Aun con Chart->Cancelmouse = true sigue haciendo lo mismo.
No pasa nada, en vez de que aparezca el Editor con un doble click, lo he hecho con un ButtonClick.

Gracias

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

Post by Pep » Wed Jul 07, 2004 9:33 am

Hola Alex,

si, pasa en el caso de que utilizes doble click, en ese caso lo que puedes hacer es desactivar el zoom del Chart en el OnMouseDown y despues volverlo a activar.

Post Reply