Custom mark text and mark tips

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
runfastman
Newbie
Newbie
Posts: 5
Joined: Fri Aug 29, 2008 12:00 am

Custom mark text and mark tips

Post by runfastman » Thu Jul 21, 2011 9:50 pm

I have a Gantt chart and I assign custom text to the marks text to show short detail at all times:

Series.AddGantt(Now(), Now() + 24, i, 'My Y Label');
Series.Marks.Item.Text.Text := 'Short';

I also want to give longer detail as a marktip, so I have

Series.Marks.Style := smsPointIndex;
MarkTips.Style := smsPointIndex;

But, the hover text is the mark text value ("Short"), not the ValueIndex I need so I can look up and show more detailed description.

If I don't set the custom mark text, the hover value shows the ValueIndex, but the mark text isn't what I want.

How can show both custom marktext and custom marktip?

Yeray
Site Admin
Site Admin
Posts: 9617
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Custom mark text and mark tips

Post by Yeray » Fri Jul 22, 2011 4:38 pm

Hello,

If I understood well, you want to show 3 different strings in the labels, marks and marktips. I'm afraid that you'll have to do the marktips manually (with an annotation tool controlled by the mouse events in conjunction with the series clicked function) because the marktips tool OnGetText event doesn't give you the point index.

Here you can see a similar discussion.
http://www.teechart.net/support/viewtop ... tips+event
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply