How Do I set parameters like font/bg for a Mark Tips tool?
Posted: Wed Jan 05, 2005 6:35 pm
Apparently setting the parameters for the marks in design time or programatically does not work.
here's what I did and didn't work...
here's what I did and didn't work...
Code: Select all
void __fastcall TFGPS::chtVolByVar_OnGetMarkText(TChartSeries *Sender,
int ValueIndex, AnsiString &MarkText)
{
TMarksItem *pMarks = Sender->Marks->Item[ValueIndex];
TPointSeries *p = dynamic_cast<TPointSeries *>(Sender);
double x = p->XValue[ValueIndex],
y = p->YValue[ValueIndex];
pMarks->Font->Name = "Tahoma";
pMarks->Font->Size = 7;
pMarks->Color = 0x00E4E4EA;
pMarks->Frame->Color = clGray;
MarkText.sprintf( "%s\n%d%%\nR$%.2f", MarkText,
(int)x, y );
}