TRectangleTool border

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
franckgar
Advanced
Posts: 109
Joined: Thu Nov 04, 2004 5:00 am

TRectangleTool border

Post by franckgar » Tue Apr 04, 2006 3:03 pm

Hi,
I'm using TRectangleTool for displaying text on the graph, and for each of them I have enabled the autosizing (AutoSize := TRUE). But there is a strange behaviour : when the mouse move is over the border of each TRectangleTool , the cursor switch to CRSIZEWE. I don't understand why as the autosizing is enabled.
So my question is : how can I disable this behaviour of the mouse ?

Thanks
Franck

franckgar
Advanced
Posts: 109
Joined: Thu Nov 04, 2004 5:00 am

Post by franckgar » Thu Apr 06, 2006 11:59 am

No ideas ?

franckgar
Advanced
Posts: 109
Joined: Thu Nov 04, 2004 5:00 am

Post by franckgar » Mon Apr 10, 2006 12:01 pm

really no ideas how can I disable this behaviour of the mouse ?

Franck

bertrod
Advanced
Posts: 151
Joined: Wed Sep 07, 2005 4:00 am

Post by bertrod » Mon Apr 10, 2006 2:19 pm

If you have all TeeChart sources, you can disable it. You must use the file teeTools.pas in your project, and in it you have a function "guessEdgeCursor" in the "TRectangleTool" class. In this function, the cursor is modified to CRSIZEWE; you just need to comment this line and it should be ok.

franckgar
Advanced
Posts: 109
Joined: Thu Nov 04, 2004 5:00 am

Post by franckgar » Mon Apr 10, 2006 2:59 pm

thanks bertrod !!

Post Reply