Page 1 of 1
TAnnotationTool bug?
Posted: Wed Dec 10, 2008 4:24 pm
by 9339885
Hi,
When I add a TAnnotationTool such as TRectangleTool. And I add OndblClick event to the TRectangleTool. In the OnDblClick event I create adn call TColorDialog. After closing the TColorDialog, and move the mouse in to Chart, the TRectangleTool object will follow the mouse move!
Is there a method I can use to stop this?
Thanks
-Bill
Posted: Thu Dec 11, 2008 9:30 am
by narcis
Hi Bill,
Yes, try using this:
Posted: Thu Dec 11, 2008 2:59 pm
by 9339885
I try that. I got the same result!
Posted: Thu Dec 11, 2008 3:01 pm
by 9339885
The rectangleTool still follows the mouse!
Posted: Thu Dec 11, 2008 4:51 pm
by narcis
Hi BE,
Could you please send us a simple example project we can run "as-is" to reproduce the problem here?
You can either post your files at news://
www.steem.net/steema.public.attachments newsgroup or at our
upload page.
Thanks in advance.
Posted: Thu Dec 11, 2008 7:06 pm
by 9339885
Ok. A test file was uploaded!
Posted: Mon Dec 15, 2008 3:50 pm
by narcis
Hi BE,
Thanks for the example project. We could reproduce the issue here and will add it to the defect list to be investigated. In the meantime you can use workaround below.
Code: Select all
void __fastcall TForm1::ChartTool1DblClick(TAnnotationTool *Sender, TMouseButton Button,
TShiftState Shift, int X, int Y)
{
ChartTool1->AllowDrag=false;
InputBox("Test", "Test", "Test");
Chart1->CancelMouse=true;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Chart1MouseMove(TObject *Sender, TShiftState Shift,
int X, int Y)
{
ChartTool1->AllowDrag=true;
}
Posted: Mon Dec 15, 2008 5:37 pm
by 9339885
Thanks