Multiline labels

TeeChart for ActiveX, COM and ASP
Post Reply
Hermes
Newbie
Newbie
Posts: 54
Joined: Tue Feb 04, 2003 5:00 am
Location: Montevideo, Uruguay

Multiline labels

Post by Hermes » Mon Aug 08, 2005 5:36 pm

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?

Pep
Site Admin
Site Admin
Posts: 3279
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Aug 09, 2005 8:09 am

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

Hermes
Newbie
Newbie
Posts: 54
Joined: Tue Feb 04, 2003 5:00 am
Location: Montevideo, Uruguay

Post by Hermes » Tue Aug 09, 2005 12:41 pm

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.

Pep
Site Admin
Site Admin
Posts: 3279
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Wed Aug 10, 2005 11:57 am

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.

Hermes
Newbie
Newbie
Posts: 54
Joined: Tue Feb 04, 2003 5:00 am
Location: Montevideo, Uruguay

Post by Hermes » Thu Aug 11, 2005 12:46 pm

any date to the new release?

Pep
Site Admin
Site Admin
Posts: 3279
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Aug 11, 2005 3:39 pm

Hi,

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

Hermes
Newbie
Newbie
Posts: 54
Joined: Tue Feb 04, 2003 5:00 am
Location: Montevideo, Uruguay

Post by Hermes » Wed Oct 26, 2005 11:52 am

Any date for the new release?

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

Post by Narcís » Wed Oct 26, 2005 2:25 pm

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.
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

Hermes
Newbie
Newbie
Posts: 54
Joined: Tue Feb 04, 2003 5:00 am
Location: Montevideo, Uruguay

Post by Hermes » Wed Oct 26, 2005 7:45 pm

Excelent, is the "Different behavior between v5 and v7 in Maps Series" issue fixed too?.

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 Oct 27, 2005 10:22 am

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.
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