Clicked(X,Y) and ColorGrid series
Posted: Tue Jun 06, 2006 11:13 am
Hi
I am trying to use the Clicked(X,Y) function with a ColorGrid series with its
IrregularGrid property set to false. It always seems to return -1, except
for a small region just above the X axis, where it seems to work Ok. Is there
an issue with this function and Irregular ColorGrids?
I am using C++Builder 6 with TChart V7.07.
example code:
Thanks
Gareth
I am trying to use the Clicked(X,Y) function with a ColorGrid series with its
IrregularGrid property set to false. It always seems to return -1, except
for a small region just above the X axis, where it seems to work Ok. Is there
an issue with this function and Irregular ColorGrids?
I am using C++Builder 6 with TChart V7.07.
example code:
Code: Select all
void __fastcall TMDIChild::Chart1MouseMove(TObject *Sender,
TShiftState Shift, int X, int Y)
{
if(ColorGrid->Active)
{
int i = ColorGrid->Clicked(X,Y);
if(i!=-1)
{
double Val = ColorGrid->YValue[i];
Chart1->Title->Text->Strings[0] = FloatToStr(Val);
}
}
}
Gareth