Tool tips do not work in IE7

TeeChart for ActiveX, COM and ASP
Post Reply
DMSTL
Newbie
Newbie
Posts: 3
Joined: Tue Jul 24, 2007 12:00 am
Contact:

Tool tips do not work in IE7

Post by DMSTL » Mon Jul 07, 2008 1:40 pm

I have been unable to get tooltips working in IE7 (using .Tools.Add tcMarksTip), whereas they work fine in IE6.
Are there any known issues/workarounds for this?

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

Post by Narcís » Mon Jul 07, 2008 1:49 pm

Hi DMSTL,

This is most likely the same problem as described here. I'll send you an e-mail with the example mentioned on this thread.
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

DMSTL
Newbie
Newbie
Posts: 3
Joined: Tue Jul 24, 2007 12:00 am
Contact:

IE7 Tooltip

Post by DMSTL » Mon Jul 07, 2008 3:34 pm

Thanks,

I had to change:
TChart1.Tools.Items(0).asAnnotation.Left = X
TChart1.Tools.Items(0).asAnnotation.Top = Y

to:

TChart1.Tools.Items(0).asAnnotation.Shape.Left = X
TChart1.Tools.Items(0).asAnnotation.Shape.Top = Y

to get it to work as it was throwing an error.

The problem I have now is that the annotation doesn't automatically wrap like a tooltip and as the chart is in a nested frame most of it disappears behind one of the other frames when it is a long string. I have tried setting TChart1.Tools.Items(0).asAnnotation.Width but that causes IE to crash. I can't see any other way to change this short of inserting vbcrlf's into the string to be displayed.

How can I change the height and width of the annotation box and force the text to wrap within it?

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

Post by Narcís » Tue Jul 08, 2008 8:01 am

Hi DMSTL,

MarkTips tool uses windows hints, Annotation tools don't and therefore they are clipped by the browser window. The only solution is, when calculating the Annotation position, check if its Left coordinate plus its width is greater than chart's width. If so you could make a multiple line annotation tool.
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

DMSTL
Newbie
Newbie
Posts: 3
Joined: Tue Jul 24, 2007 12:00 am
Contact:

Annotation width

Post by DMSTL » Tue Jul 08, 2008 8:26 am

Please could you give me an example of how to do that?
With my annotation the width is always (nearly) the same as the left position of the shape but negative.
e.g.
TChart1.Tools.Items(annotationToolIndex).asAnnotation.Shape.Left = 181
TChart1.Tools.Items(annotationToolIndex).asAnnotation.Width = -180

TChart1.Canvas.Width = 812

The annotation text is clipped in the above example

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

Post by Narcís » Tue Jul 15, 2008 8:24 am

Hi DMSTL,

Ok, I'll send you an example.
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