Page 1 of 1

Multiline labels

Posted: Mon Aug 08, 2005 5:36 pm
by 6927799
Hi, I've recently upgraded from TeeChart 5 to 7, everything seems to be correct, except for the use of TeeSplitInLines.
The chart has the multiline property = true, and in the OnGetAxisLabel this code:

Code: Select all

if Axis = atBottom then
    TChart1.Axis.Bottom.lanels.TeeSplitLines LabelText, " : "
End If
This has been working correctly until the upgrade, any clue?

Posted: Tue Aug 09, 2005 8:09 am
by Pep
Hi,

yes, you're correct, I'm able to see the problem here, it seems to be a bug. I've added it on our defect list and a fix for it will be considered to inclusion for the next maintenance releases. In meantime you can use similar code like in the example you can find under :
F:\Program Files\Steema Software\TeeChart Pro v7 ActiveX Control\Examples\Visual Basic\Visual Basic 5 & 6\Multiline Axis Labels

Posted: Tue Aug 09, 2005 12:41 pm
by 6927799
Hi, the example's approach isn't usefull for me, I'm not using datetime series. Is there another workaround? My axis labels are very long and with different formats so I need to split them.

Posted: Wed Aug 10, 2005 11:57 am
by Pep
Hi,

yes, for the moment a workaround is to split them manually, using similar code to the following :

Code: Select all

Private Sub TChart1_OnGetAxisLabel(ByVal Axis As Long, ByVal SeriesIndex As Long, ByVal ValueIndex As Long, LabelText As String)
If Axis = atBottom Then
    LabelText = LabelText + Chr(13) + "..."
End If
End Sub
The SplitInLine method will work again in the next maintenance release v7.06.

Posted: Thu Aug 11, 2005 12:46 pm
by 6927799
any date to the new release?

Posted: Thu Aug 11, 2005 3:39 pm
by Pep
Hi,

there's not a date fixed, but I think it will be at the beginning of October.

Posted: Wed Oct 26, 2005 11:52 am
by 6927799
Any date for the new release?

Posted: Wed Oct 26, 2005 2:25 pm
by narcis
Hi Hermes,

I can't tell you a fix date but it may be ready in a month. However, the issue you reported is already fixed and we are going to send an .ocx with the fix for it to your contact e-mail address.

Posted: Wed Oct 26, 2005 7:45 pm
by 6927799
Excelent, is the "Different behavior between v5 and v7 in Maps Series" issue fixed too?.

Posted: Thu Oct 27, 2005 10:22 am
by narcis
Hi Hermes,

I've just sent you the .ocx with the fix for this problem. Please don't forget to unregister the old one and register the new version. For more information on how to register .ocx files please have a look at "Tutorial 18 - TeeChart runtime installation requirements". You'll find the tutorials at TeeChart's program group.

Regarding the maps issue it hasn't been fixed yet. We will try to fix it for the next maintenance release.