URGENT: how to retrieve Index OnColorLineToolBeginDragLine

TeeChart for ActiveX, COM and ASP
Post Reply
guilz2010
Newbie
Newbie
Posts: 63
Joined: Thu Nov 25, 2010 12:00 am
Location: Paris, France

URGENT: how to retrieve Index OnColorLineToolBeginDragLine

Post by guilz2010 » Tue May 03, 2011 4:30 pm

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

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: URGENT: how to retrieve Index OnColorLineToolBeginDragLine

Post by Sandra » Wed May 04, 2011 12:12 pm

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,
Best Regards,
Sandra Pazos / 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

guilz2010
Newbie
Newbie
Posts: 63
Joined: Thu Nov 25, 2010 12:00 am
Location: Paris, France

Re: URGENT: how to retrieve Index OnColorLineToolBeginDragLine

Post by guilz2010 » Wed May 04, 2011 12:42 pm

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

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: URGENT: how to retrieve Index OnColorLineToolBeginDragLine

Post by Sandra » Wed May 04, 2011 1:37 pm

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,
Best Regards,
Sandra Pazos / 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

guilz2010
Newbie
Newbie
Posts: 63
Joined: Thu Nov 25, 2010 12:00 am
Location: Paris, France

Re: URGENT: how to retrieve Index OnColorLineToolBeginDragLine

Post by guilz2010 » Wed May 04, 2011 2:19 pm

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

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: URGENT: how to retrieve Index OnColorLineToolBeginDragLine

Post by Sandra » Wed May 04, 2011 2:58 pm

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,
Best Regards,
Sandra Pazos / 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

guilz2010
Newbie
Newbie
Posts: 63
Joined: Thu Nov 25, 2010 12:00 am
Location: Paris, France

Re: URGENT: how to retrieve Index OnColorLineToolBeginDragLine

Post by guilz2010 » Wed May 04, 2011 3:26 pm

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

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: URGENT: how to retrieve Index OnColorLineToolBeginDragLine

Post by Sandra » Thu May 05, 2011 1:24 pm

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,
Best Regards,
Sandra Pazos / 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

guilz2010
Newbie
Newbie
Posts: 63
Joined: Thu Nov 25, 2010 12:00 am
Location: Paris, France

Re: URGENT: how to retrieve Index OnColorLineToolBeginDragLine

Post by guilz2010 » Thu May 05, 2011 1:42 pm

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

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: URGENT: how to retrieve Index OnColorLineToolBeginDragLine

Post by Sandra » Fri May 06, 2011 2:18 pm

Hello Guilz,

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

Thanks,
Best Regards,
Sandra Pazos / 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

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: URGENT: how to retrieve Index OnColorLineToolBeginDragLine

Post by Sandra » Mon May 09, 2011 9:51 am

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,
Best Regards,
Sandra Pazos / 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

Post Reply