TAnnotationTool bug?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
BE
Newbie
Newbie
Posts: 41
Joined: Tue Nov 16, 2004 5:00 am

TAnnotationTool bug?

Post by BE » Wed Dec 10, 2008 4:24 pm

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

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

Post by Narcís » Thu Dec 11, 2008 9:30 am

Hi Bill,

Yes, try using this:

Code: Select all

  Chart1.CancelMouse:=true;
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

BE
Newbie
Newbie
Posts: 41
Joined: Tue Nov 16, 2004 5:00 am

Post by BE » Thu Dec 11, 2008 2:59 pm

I try that. I got the same result!

BE
Newbie
Newbie
Posts: 41
Joined: Tue Nov 16, 2004 5:00 am

Post by BE » Thu Dec 11, 2008 3:01 pm

The rectangleTool still follows the mouse!

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

Post by Narcís » Thu Dec 11, 2008 4:51 pm

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.
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

BE
Newbie
Newbie
Posts: 41
Joined: Tue Nov 16, 2004 5:00 am

Post by BE » Thu Dec 11, 2008 7:06 pm

Ok. A test file was uploaded!

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

Post by Narcís » Mon Dec 15, 2008 3:50 pm

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;
}
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

BE
Newbie
Newbie
Posts: 41
Joined: Tue Nov 16, 2004 5:00 am

Post by BE » Mon Dec 15, 2008 5:37 pm

Thanks

Post Reply