OnClickSeries in TGanttSeries
Posted: Sun Jan 01, 2012 7:38 pm
Hi,
I'm using a OnClickSeries on a GanttSeries.
How do I obtain the MarkText when I click on a TGantt series?
I have tried the following but it doesn't work:
I'm using a OnClickSeries on a GanttSeries.
How do I obtain the MarkText when I click on a TGantt series?
I have tried the following but it doesn't work:
Code: Select all
procedure TForm1.Chart14ClickSeries(Sender: TCustomChart; Series: TChartSeries;
ValueIndex: Integer; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
var
GanttSeries : TGanttSeries;
begin
if Series is TGanttSeries then
begin
GanttSeries := Series as TGanttSeries;
showmessage(GanttSeries.Marks.Item[valueindex].Text[0]);
end;