Problems building with 7.0.4. Tannotation tool, Left and Top

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Jon Engelbert
Newbie
Newbie
Posts: 3
Joined: Fri Nov 15, 2002 12:00 am
Location: Ann Arbor, MI
Contact:

Problems building with 7.0.4. Tannotation tool, Left and Top

Post by Jon Engelbert » Thu Mar 17, 2005 5:51 pm

I just upgraded to Teechart 704 (I'm using it with BCB6).

I get the following errors upon building my project.
[C++ Error] TeeTools.hpp(894): E2272 Identifier expected
[C++ Error] TeeTools.hpp(895): E2272 Identifier expected

Lines 894 and 895 are:
__property int Left = {read=GetLeft, write=SetLeft, stored=false, nodefault};
__property int Top = {read=GetTop, write=SetTop, stored=false, nodefault};
If I comment out these two lines, then it's ok.

Any ideas?

-Jon Engelbert

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Fri Mar 18, 2005 12:31 pm

Hi, Jon.

Hm... The hpp files are autogenerated from Delphi units and shouldn't be changed. Lines you mentioned are two published TAnnotationTool properties.

Which TeeChart version did you use before 7.04 ?
Marjan Slatinek,
http://www.steema.com

Jon Engelbert
Newbie
Newbie
Posts: 4
Joined: Wed Sep 29, 2004 4:00 am
Location: Ann Arbor, MI
Contact:

Post by Jon Engelbert » Fri Mar 18, 2005 10:15 pm

Before, I was using 7.03. And it worked fine.
Another problem I'm getting with 7.0.4, the TCursorTool, I change the YValue to track the signal (with interpolation, that's why I'm doing it manually), but it insists on tracking the cursor. I checked and Snap is off, as well as FollowMouse is off. I've wasted most of today on this bug with no luck.

Jon Engelbert
Newbie
Newbie
Posts: 4
Joined: Wed Sep 29, 2004 4:00 am
Location: Ann Arbor, MI
Contact:

Post by Jon Engelbert » Sun Mar 20, 2005 9:25 pm

OK,
Here's the deal. I've noticed that the ordering and inclusion/exclusion of different header files affects these compile errors with C++ Builder. So there's not really a problem with the include file, but something else (I don't know what) that was included before it, or that was omitted from being included, was the problem.

On a separate note, the auto-inclusion of header files within the form's header file makes C++ Builder's build times very slow. I've gone to the length of #defining out whole sets of include statements within my form's include files. I don't know if this is a "feature" of BCB or of Teechart, but it's annoying. The reason it is slow is that it takes a long time to read 20 or more include files. And I use Precomiled headers, so I don't need to read in all of these headers for each form since they're already in the precompiled header.

Finally, I found a solution to my problem with the TCursorTool. The solution was to make a new TCursor tool with FollowMouse = false, and use that. I had previously been using one cursor tool, and, at runtime, changine its FollowMouse to true and false and back, at the user's will. It seems that once the cursor tool's FollowMouse is true, it doesn't go back.
V

Jon Engelbert
Newbie
Newbie
Posts: 4
Joined: Wed Sep 29, 2004 4:00 am
Location: Ann Arbor, MI
Contact:

Post by Jon Engelbert » Thu Mar 24, 2005 7:55 pm

Some more important information on the Teetools.h compile problems.
I am using Dew Research's tools along with TeeChart.
When I replaced TeeTools.h with SignalTeeTools.h (from Dew Research's library), the buld problems disappeared. SignalTeeTools.h includes TeeTools within it, along with other headers... so I think that perhaps I was missing a header that was needed by TeeTools.h previously.

Post Reply