Page 1 of 1
Selector Tool
Posted: Mon Sep 29, 2014 9:56 pm
by 9532498
1) When I add the Selector Tool via the Editor, I can only resize the chart by dragging the bottom right corner. Is there a way to resize it by saying dragging the right edge out or bottom edge down?
2) What is the function of the the handles that appear on the chart when selected via Editor -> Tools -> Add Selector?
3) How can I add the ability to drag (ie turn drag on) via my C+= code? I'm using TeeChart Pro ActiveX version 7.
Thanks.
Re: Selector Tool
Posted: Tue Sep 30, 2014 9:55 am
by yeray
Hello,
nbp wrote:1) When I add the Selector Tool via the Editor, I can only resize the chart by dragging the bottom right corner. Is there a way to resize it by saying dragging the right edge out or bottom edge down?
I've added this to the public tracker to be implemented in future releases:
http://bugs.teechart.net/show_bug.cgi?id=937
nbp wrote:2) What is the function of the the handles that appear on the chart when selected via Editor -> Tools -> Add Selector?
Do you mean the Handle button in the Selector editor?
You can change the pen used to draw the selection squares highlighting the selected element.
- SelectorHandle.png (11.15 KiB) Viewed 27067 times
nbp wrote:3) How can I add the ability to drag (ie turn drag on) via my C+= code? I'm using TeeChart Pro ActiveX version 7.
In VB6 it's:
Code: Select all
TChart1.Tools.Add tcSelector
TChart1.Tools.Items(0).asSelector.AllowResizeChart = True
If you still find problems doing the same in VC++, don't hesitate to let us know.
Re: Selector Tool
Posted: Tue Sep 30, 2014 7:22 pm
by 9532498
I don't seem to have tcSelector defined in my version of TeeChartDefines.h. I only have the following list,
Copied from TeeChartDefines.h
// EToolClass
const unsigned long tcCursor = 0;
const unsigned long tcDragMarks = 1;
const unsigned long tcAxisArrow = 2;
const unsigned long tcDrawLine = 3;
const unsigned long tcNearest = 4;
const unsigned long tcColorband = 5;
const unsigned long tcColorLine = 6;
const unsigned long tcRotate = 7;
const unsigned long tcMarksTip = 8;
const unsigned long tcChartImage = 9;
const unsigned long tcAnnotate = 10;
const unsigned long tcPageNumber = 11;
const unsigned long tcGridTranspose = 12;
const unsigned long tcExtraLegend = 13;
const unsigned long tcSeriesAnimation = 14;
const unsigned long tcGantt = 15;
const unsigned long tcGridBand = 16;
const unsigned long tcPie = 17;
const unsigned long tcDragPoint = 18;
const unsigned long tcLegendScrollBar = 19;
const unsigned long tcLight = 20;
const unsigned long tcSurfaceNearest = 21;
const unsigned long tcAxisScroll = 22;
Re: Selector Tool
Posted: Wed Oct 01, 2014 7:59 am
by yeray
Hello,
I can see it in TeeChart ActiveX v7.0.1.4:
Code: Select all
// EToolClass
const unsigned long tcCursor = 0;
const unsigned long tcDragMarks = 1;
const unsigned long tcAxisArrow = 2;
const unsigned long tcDrawLine = 3;
const unsigned long tcNearest = 4;
const unsigned long tcColorband = 5;
const unsigned long tcColorLine = 6;
const unsigned long tcRotate = 7;
const unsigned long tcMarksTip = 8;
const unsigned long tcChartImage = 9;
const unsigned long tcAnnotate = 10;
const unsigned long tcPageNumber = 11;
const unsigned long tcGridTranspose = 12;
const unsigned long tcExtraLegend = 13;
const unsigned long tcSeriesAnimation = 14;
const unsigned long tcGantt = 15;
const unsigned long tcGridBand = 16;
const unsigned long tcPie = 17;
const unsigned long tcDragPoint = 18;
const unsigned long tcLegendScrollBar = 19;
const unsigned long tcLight = 20;
const unsigned long tcSurfaceNearest = 21;
const unsigned long tcAxisScroll = 22;
const unsigned long tcSeriesBand = 23;
const unsigned long tcSelector = 24;
const unsigned long tcRectangle = 25;
const unsigned long tcDataTable = 26;
const unsigned long tcClipSeries= 27;
Re: Selector Tool
Posted: Wed Jul 01, 2015 9:12 pm
by 16673658
I've now upgraded to TChart2015 Pro ActiveX.
I tried the above in Visual C++ (Visual Studio 2010). Here is the snippet of code:
Code: Select all
pChart->GetTools().Add(tcSelector);
CSelectorTool ResizeTool = pChart->GetTools().GetItems(0).GetAsSelector();
ResizeTool.SetAllowResizeChart(TRUE);
I get "Not Implemented" exeption message. Is this interface not implemented? I understood your previous response to mean it is implemented in the C++ interface also.
Re: Selector Tool
Posted: Thu Jul 02, 2015 2:47 pm
by 10050769
Hello,
You are right. We can reproduce the problem you are experiencing. We have added it in
TeeChart Activex bugzilla tracker to fix it to upcoming versions. Here's the link
http://bugs.teechart.net/show_bug.cgi?id=1250.
Feel free to add your email to the tickets so you can be automatically notified when an update arrives.
Thanks in advance
Re: Selector Tool
Posted: Thu Jul 02, 2015 4:41 pm
by 16673658
Thanks.
I checked the bugzilla website (link provided above) and registered a new account. How/Where do I add my email so I can be notified when it is fixed?
Re: Selector Tool
Posted: Fri Jul 03, 2015 6:49 am
by narcis
Hello nbp,
You should add it at the CC List field.
Re: Selector Tool
Posted: Wed Sep 30, 2015 9:51 pm
by 16673658
I just checked the bug tracking system and the issue is resolved and fixed. Will it be available in the "TeeChart Pro Activex Control v2015 v2015.0.0.2" release?
If so, when can we have access to this release?
Regards.
Re: Selector Tool
Posted: Thu Oct 01, 2015 7:18 am
by yeray
Hello,
Looking at the
ticket history, you can see the ticket was closed the 22th September 2015.
And looking at
TeeChart ActiveX public release notes, you can see the latest release, v2015.0.0.3, was published the 24th Septempber 2015. So it should include that fix.
Re: Selector Tool
Posted: Thu Oct 01, 2015 3:47 pm
by 16673658
Thank you.