Page 1 of 1

URGENT: how to retrieve Index OnColorLineToolBeginDragLine

Posted: Tue May 03, 2011 4:30 pm
by 16657923
hi,

I have a collection of ColorLine tools. I must know when a line is drag and what is the index of the line when it's draggued.

The function OnColorLineToolBeginDragLine() does not return the index of the tools !

How can i know what is the index of the current colorline tools when the user begin drag line ?

Thanks for your help

Guilz

Re: URGENT: how to retrieve Index OnColorLineToolBeginDragLine

Posted: Wed May 04, 2011 12:12 pm
by 10050769
Hello Guilz,
I have made a simple project where when you select a colorLine return string with name of colorLine you are selected:

Code: Select all

Private MouseX1 As Integer
Private MouseY1 As Integer
Private Sub Form_Load()
TChart1.AddSeries scLine
TChart1.Series(0).FillSampleValues
TChart1.Tools.Add tcColorLine
TChart1.Tools.Add tcColorLine
TChart1.Tools.Items(0).asColorLine.Value = 3
TChart1.Tools.Items(0).asColorLine.Axis = TChart1.Axis.Bottom
TChart1.Tools.Items(0).asColorLine.Pen.Color = vbBlue
TChart1.Tools.Items(1).asColorLine.Value = 5
TChart1.Tools.Items(1).asColorband.Axis = TChart1.Axis.Bottom
TChart1.Tools.Items(1).asColorLine.Pen.Color = vbRed
End Sub

Private Sub TChart1_OnColorLineToolBeginDragLine()
  If TChart1.Tools.Items(0).asColorLine.Clicked(MouseX1, MouseY1) Then
  Caption = "ColorLine1"
  End If
  If TChart1.Tools.Items(1).asColorLine.Clicked(MouseX1, MouseY1) Then
  Caption = "ColorLine2"
  End If
End Sub
Private Sub TChart1_OnMouseMove(ByVal Shift As TeeChart.EShiftState, ByVal X As Long, ByVal Y As Long)
  MouseX1 = X
  MouseY1 = Y
End Sub
Could you confirm us if previous code works as you expected?

Thanks,

Re: URGENT: how to retrieve Index OnColorLineToolBeginDragLine

Posted: Wed May 04, 2011 12:42 pm
by 16657923
Hi Sandra,

Thank you for your code - It is dirty (to have 2 global variables) but it is working :wink:

It would be a good idea in the next release to have the possibility to catch the index of the tool when we use

Actual
.OnColorLineToolBeginDragLine()
.OnColorLineToolDragLine()
.OnColorLineToolEndDragLine()

Next Release
.OnColorLineToolBeginDragLine(ToolIndex as integer)
.OnColorLineToolDragLine(ToolIndex as integer)
.OnColorLineToolEndDragLine(ToolIndex as integer)

Regards,

Guilz

Re: URGENT: how to retrieve Index OnColorLineToolBeginDragLine

Posted: Wed May 04, 2011 1:37 pm
by 10050769
Hello Guilz,

Thanks for your suggestion. I have added your request in wish-list with number [TV52015556]to be considered inclusion in next releases of TeeChartActiveX.

Thanks,

Re: URGENT: how to retrieve Index OnColorLineToolBeginDragLine

Posted: Wed May 04, 2011 2:19 pm
by 16657923
Thank you but when I look the TV number I'm afraid my request will be done next year (my previous requests adressed last months are still not fixed) :mrgreen:

Guilz

Re: URGENT: how to retrieve Index OnColorLineToolBeginDragLine

Posted: Wed May 04, 2011 2:58 pm
by 10050769
Hello Guilz,

When we revise the state of bug we consider the problems depending the priority, severity or number of request there are of bug or feature request. If you want you can tell us what are your other bugs or feature request are pending, so we can check which state is.

Thanks,

Re: URGENT: how to retrieve Index OnColorLineToolBeginDragLine

Posted: Wed May 04, 2011 3:26 pm
by 16657923
TV52014461 02/10/09
TV52015105 24/08/10
TV52015259 03/11/10
TA05015311 07/12/10
TA05015119 15/12/10
TV52015326 17/12/10
TV52015179 17/01/11 - Very critical
TV52015427 01/03/11

Thank you !

Guilz

Re: URGENT: how to retrieve Index OnColorLineToolBeginDragLine

Posted: Thu May 05, 2011 1:24 pm
by 10050769
Hello Guilz,

Thanks for your list of bug, feature request and enhancement. I have check the state of items and inform that I have increased severity of feature request with number (TV52014461) (TV52015259) (TV52015326) and the enhancement (TV52015105). Moreover I communicate that bugs with numbers(TV52015179) and (TV52015427) are fixed. About bugs with numbers (TA05015311) (TA05015119) we are working with these, try to fix for next maintenace releases.

Thanks,

Re: URGENT: how to retrieve Index OnColorLineToolBeginDragLine

Posted: Thu May 05, 2011 1:42 pm
by 16657923
Hi Sandra,

Thank you for your response.

I forget to mention that we still use Teechart v8 - When you speak about bugs resolution, does it concern v8 AND v2010 or only v2010 version ?
Could you give us the date of the next release (approximately) ?

Kind regards,

Guilz

Re: URGENT: how to retrieve Index OnColorLineToolBeginDragLine

Posted: Fri May 06, 2011 2:18 pm
by 10050769
Hello Guilz,

We haven't forgotten you. We'll be back to you asap.

Thanks,

Re: URGENT: how to retrieve Index OnColorLineToolBeginDragLine

Posted: Mon May 09, 2011 9:51 am
by 10050769
Hello Guiltz,

I have inform that bug with number (TA05015311) is already fixed to next maintenance release of TeeChartActivex. On the other hand, in last version of TeeChartActivex bug (TA05015119) works correctly.
I forget to mention that we still use Teechart v8 - When you speak about bugs resolution, does it concern v8 AND v2010 or only v2010 version ?
The bugs are resolved in v2010 version for the moment, so we recently published, released of version 8.
Could you give us the date of the next release (approximately) ?
I recommend you to be aware at this forum, our RSS news feed, twitter and facebook accounts for new release announcements and what's implemented on them

Thanks,