Chart Resizing in MS VC++

TeeChart for ActiveX, COM and ASP
Post Reply
nbp
Newbie
Newbie
Posts: 83
Joined: Mon Sep 18, 2006 12:00 am

Chart Resizing in MS VC++

Post by nbp » Wed Feb 25, 2009 10:24 pm

I'm trying to add the Chart Selector tool (via my code) so that the user can resize the chart but in my version of TeeChartDefines.h, tcSelector is not defined. Is there any other way I can resize the chart?

I'm using Visual C++ (Microsoft Visual Studio 2008).

Thanks.

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 Feb 27, 2009 9:22 am

Hi nbp,

Which TeeChart version are you using? tcSelector is defined in TeeChart Pro v8.0.0.5 ActiveX which is the latest version available at the client area.
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

nbp
Newbie
Newbie
Posts: 83
Joined: Mon Sep 18, 2006 12:00 am

Post by nbp » Fri Feb 27, 2009 3:12 pm

I'm using TChart version 7 (ActiveX). Is there any way to access tcSelector in version 7? I might not upgrade for another month or so since we're about to release our software.

Thanks.

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 Feb 27, 2009 3:22 pm

Hi nbp,

You could try using 24 which is the constant for tcSelector.
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

nbp
Newbie
Newbie
Posts: 83
Joined: Mon Sep 18, 2006 12:00 am

Post by nbp » Fri Feb 27, 2009 9:50 pm

I used 24 instead of tcSelector and it compiled fine but then I had a problem with thesecond statement below:

mChart->GetTools().Add(24);
mChart->GetTools().GetItems(0).GetAsSelector().SetAllowDrag(true)

The compile time error is as follows:

error C2039: 'GetAsSelector' : is not a member of 'CTools

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

Post by Pep » Mon Mar 02, 2009 12:02 pm

Hi,

yes, you're correct, this was a bug. It has been fixed for the next maintenance release which will be out soon (in a few weeks).
In case you need the fixed version urgently let us know and we'll send the latest ocx to you.

Post Reply