Please back SnapStyle property to TChartTool v.7.12 and high

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
GAN
Newbie
Newbie
Posts: 9
Joined: Tue Mar 13, 2007 12:00 am
Contact:

Please back SnapStyle property to TChartTool v.7.12 and high

Post by GAN » Fri Feb 29, 2008 10:16 am

In TeeChart Pro 7.07 version for C++Builder6
Cursor tool has property TSnapStyle:SnapStyle

Code: Select all

ChartTool1->SnapStyle = ssVertical; 
There is no such property in the version of a component for C++Builder2007
(TeeChart Pro v.7.12 Win32).
Without this property the cursor is drawn not on a series line.
Please back this property for version of a component for C++Builder2007 or fix this problem.


To Narcís: In my previous topic (21 Feb 2008 08:22 Cursor tool have't snap style... )
i have made a typing error. I have written "Style: TCursorToolStyle" though wished to write "SnapStyle: TSnapStyle". I ask to excuse.

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Mar 04, 2008 11:51 am

Hi GAN,

yes, using this property in C++2007 there's an ambiguity with the 'Stdctrls::ssVertical'.
I've added this issue on our bug/wish to modify it for the next releases. In meantime a solution is to assign it by using :

Code: Select all

ChartTool1->SnapStyle = TSnapStyle(2);  // for Vertical..

GAN
Newbie
Newbie
Posts: 9
Joined: Tue Mar 13, 2007 12:00 am
Contact:

Post by GAN » Thu Mar 06, 2008 7:03 am

Hi Pep,
Please, look into TeeTools.hpp (from TeeChart Pro v.7.12 Win32 C++Builder2007)
There is no SnapStyle property.
Compiler message: 'SnapStyle' is not a member of 'TCursorTool'!
Please back this property for version of a component for C++Builder2007

Cut from TeeTools.hpp (from TeeChart Pro v.7.12 Win32 C++Builder2007 ):

Code: Select all

class PASCALIMPLEMENTATION TCursorTool : public Teengine::TTeeCustomToolSeries 
{
	typedef Teengine::TTeeCustomToolSeries inherited;
private:
                     /.../
protected:
                     /..../
public:
	/.../
__published:
	__property Active  = {default=1};
	__property int ClickTolerance = {read=FClick, write=FClick, default=3};
	__property bool FollowMouse = {read=FFollowMouse, write=FFollowMouse, default=0};
	__property Pen ;
	__property Series ;
	__property bool Snap = {read=FSnap, write=FSnap, default=0};
	__property TCursorToolStyle Style = {read=FStyle, write=SetStyle, default=2};
	__property bool UseSeriesZ = {read=FUseSeriesZ, write=SetUseSeriesZ, default=0};
	__property TCursorToolChangeEvent OnChange = {read=FOnChange, write=FOnChange};
	__property TCursorToolChangeEvent OnSnapChange = {read=FOnSnapChange, write=FOnSnapChange};
public:
	#pragma option push -w-inl
	/* TCustomChartElement.Destroy */ inline __fastcall virtual ~TCursorTool(void) { }
	#pragma option pop
	
};

Cut from TeeTools.hpp (from TeeChart Pro v.7.07 Win32 C++Builder6):

Code: Select all

class PASCALIMPLEMENTATION TCursorTool : public Teengine::TTeeCustomToolSeries 
{
	typedef Teengine::TTeeCustomToolSeries inherited;
	
private:
                     /.../	
TSnapStyle FSnapStyle;
                     /.../
protected:
	/..../
public:
	/.../
__published:
	__property Active  = {default=1};
	__property int ClickTolerance = {read=FClick, write=FClick, default=3};
	__property bool FollowMouse = {read=FFollowMouse, write=FFollowMouse, default=0};
	__property Pen ;
	__property Series ;
	__property bool Snap = {read=FSnap, write=FSnap, default=0};

//*******************************************************************************// 
	__property TSnapStyle SnapStyle = {read=FSnapStyle, write=FSnapStyle, default=0};
//********************************************************************************//


	__property TCursorToolStyle Style = {read=FStyle, write=SetStyle, default=2};
	__property bool UseSeriesZ = {read=FUseSeriesZ, write=SetUseSeriesZ, default=0};
	__property TCursorToolChangeEvent OnChange = {read=FOnChange, write=FOnChange};
	__property TCursorToolChangeEvent OnSnapChange = {read=FOnSnapChange, write=FOnSnapChange};
public:
	#pragma option push -w-inl
	/* TCustomChartElement.Destroy */ inline __fastcall virtual ~TCursorTool(void) { }
	#pragma option pop
	
};

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 Mar 06, 2008 11:33 am

Hi GAN,

As you can see here, SnapStyle property was implemented for TeeChart Pro v8 VCL.

We have also checked that neither v7.07 for C++ Builder 6 nor v7.12 for C++ Builder 6 and 2007 have this property on their TeeTools.hpp.

Could it be possible that you used an evaluation version of v8 and their hpp replaced v7's?
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

GAN
Newbie
Newbie
Posts: 9
Joined: Tue Mar 13, 2007 12:00 am
Contact:

Post by GAN » Fri Mar 07, 2008 10:47 am

Hi Narchs!
No, i'm not using an evaluation version of v8.
v7.07 for BCB 6 has SnapStyle. And this is the last version with SnapStyle for BCB6.
v7.07 for BCB 2007 and any other has not SnapStyle.
Tell me please, have you any plans to add this property to v7 Pro?
Or i need to buy v8 Pro?

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

Post by Narcís » Fri Mar 07, 2008 11:13 am

Hi GAN,

I've checked revisions of v7 and v8 source code and I can confirm that SnapStyle was implemented in v8.

Could you please post the installer where you say this property appears to a place where we can download it and send us its URL at info at steema dot com?

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

GAN
Newbie
Newbie
Posts: 9
Joined: Tue Mar 13, 2007 12:00 am
Contact:

Post by GAN » Tue Mar 25, 2008 7:38 am

Hi Narchs!

You can download it from
http:\\www.diatehnn.ru\files\TeeChart7.07Builder6.exe

GAN
Newbie
Newbie
Posts: 9
Joined: Tue Mar 13, 2007 12:00 am
Contact:

Post by GAN » Tue Mar 25, 2008 7:59 am

And you can see a little screen shot
[img]http:\\www.diatehnn.ru\files\SnapStyle.JPG[/img]

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

Post by Narcís » Wed Mar 26, 2008 11:31 am

Hi GAN,

Thanks for the information. We have added SnapStyle property in our v7 sources. I'll send you necessary files. You can use TeeRecompile tool for compiling and installing them on your IDE.
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

GAN
Newbie
Newbie
Posts: 9
Joined: Tue Mar 13, 2007 12:00 am
Contact:

Post by GAN » Thu Mar 27, 2008 2:15 pm

Hi Narcis, biggest thanks! The problem with cursor snap style is resolved.

But there is another one. In v7.12 for BCB 2007 and BCB6 center of cursor (crosshair) draws not on a series line.
It was before update of my installation and still after.

You can download example (source and executable) of this problem from
http:\\www.diatehnn.ru\files\CursorTest.zip

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 Mar 27, 2008 3:43 pm

Hi GAN,
Hi Narcis, biggest thanks! The problem with cursor snap style is resolved.
You're welcome. I'm glad to hear that.
But there is another one. In v7.12 for BCB 2007 and BCB6 center of cursor (crosshair) draws not on a series line.
It was before update of my installation and still after.
This is because the chart is in 3D. Cursor is plotted at Z=0 coordinate while series doesn't have 3D dimensions as it is a TFastLineSeries. You have 2 options to solve this:

1. Set chart to 2D:

Code: Select all

	Chart1->View3D = false;
2. Change the TFastLineSeries to a TLineSeries.
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

GAN
Newbie
Newbie
Posts: 9
Joined: Tue Mar 13, 2007 12:00 am
Contact:

Post by GAN » Fri Mar 28, 2008 10:23 am

Yes, you are right!
Thanks!

ChainSmokinCoder
Newbie
Newbie
Posts: 12
Joined: Wed Jun 01, 2005 4:00 am
Location: wellington
Contact:

SnapStyle on 7.12

Post by ChainSmokinCoder » Mon Apr 06, 2009 12:41 am

narcis wrote:Hi GAN,

Thanks for the information. We have added SnapStyle property in our v7 sources. I'll send you necessary files. You can use TeeRecompile tool for compiling and installing them on your IDE.
Hi, I've been looking for this SnapStyle property and I couldn't find it in my TeeChart 7.12 ver.

I can see that it suppose to be in 7.07, but how come it doesn't exist in my 7.12?

I have search through TeeChart 7.12 Full source code in the TeeTools.pas and SnapStyle just isn't there.

Thank you.

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 Apr 06, 2009 8:39 am

Hi ChainSmokinCoder,

I just sent you same files I sent to GAN.
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

ChainSmokinCoder
Newbie
Newbie
Posts: 12
Joined: Wed Jun 01, 2005 4:00 am
Location: wellington
Contact:

Customer download

Post by ChainSmokinCoder » Mon Apr 06, 2009 9:07 pm

I have received the files, much appreciated. However why aren't these put into TeeChart 7?

Post Reply