Page 1 of 1

After Closing ChartEditor have Zoom active

Posted: Tue Jul 06, 2004 4:37 pm
by 8576153
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?

Posted: Tue Jul 06, 2004 6:20 pm
by Pep
Hi Alex,

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

Gracias, pero el problema sigue...

Posted: Wed Jul 07, 2004 8:45 am
by 8576153
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

Posted: Wed Jul 07, 2004 9:33 am
by Pep
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.