Page 1 of 1
Chart Resizing in MS VC++
Posted: Wed Feb 25, 2009 10:24 pm
by 9532498
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.
Posted: Fri Feb 27, 2009 9:22 am
by narcis
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.
Posted: Fri Feb 27, 2009 3:12 pm
by 9532498
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.
Posted: Fri Feb 27, 2009 3:22 pm
by narcis
Hi nbp,
You could try using 24 which is the constant for tcSelector.
Posted: Fri Feb 27, 2009 9:50 pm
by 9532498
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
Posted: Mon Mar 02, 2009 12:02 pm
by Pep
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.