Page 1 of 1

Custom mark text and mark tips

Posted: Thu Jul 21, 2011 9:50 pm
by 10550006
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?

Re: Custom mark text and mark tips

Posted: Fri Jul 22, 2011 4:38 pm
by yeray

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. ... tips+event