MarksTip don't show last row and last column in a colorgrid

TeeChart for ActiveX, COM and ASP
Post Reply
Sophie
Newbie
Newbie
Posts: 6
Joined: Fri Dec 31, 2004 5:00 am
Location: Québec, Canada
Contact:

MarksTip don't show last row and last column in a colorgrid

Post by Sophie » Wed Mar 30, 2005 3:50 pm

Hi,
If you use the tool MarksTip in a color grid, the label of the last row and the last column are never showed. This is a bug of TeeChart6.ocx, and it is not resolved with the version 7.

Code Sample for vb6 project .exe
Private Sub Form_Load()
With TChart1
.Aspect.View3D = False
.AddSeries scColorGrid
.Tools.Add tcMarksTip
End With
With TChart1.Series(0).asColorGrid
For X = 1 To 100
For Z = 1 To 10
.AddXYZ X, Rnd(10), Z, vbNullString, clTeeColor
Next
Next
End With
End Sub

Can you verify if it is included in the bugs list? I add this code to workaround, but this is not perfect.

.AddXYZ Tchart1.Series(0).XValues.Maximum + 1, 0, 1, "vide", vbWhite
.AddXYZ 1, 0, .ZValues.Maximum + 1, "vide", vbWhite

Thanks for your support
Sophie Morissette

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Mar 31, 2005 9:54 am

Hi Sophie,

Yes, you are right. I haven't found it on our defect list so I've included it to be fixed for future releases. If it was already there better being twice than none.

A way to make your workaround more elegant would be hidding the dummy row setting left axis minimum and maximum values using:

Code: Select all

TChart1.Axis.Left.SetMinMax 1, 11
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

Post Reply