ColorGrid - Clicked() function returns -1
Posted: Wed Jan 06, 2010 2:56 pm
Hi Support
Im using a Contour as the DataSource to a ColorGrid
On a mouse click I get the index to the underlying series doing this.
Point p = myColorGrid.ValuePointToScreenPoint(myCursor.XValue, myCursor.YValue);
int index = myColorGrid.Clicked(p);
As long as index >= 0 then everything is fine and I can access the series data.
However when I click at the very top (maximumm y axis extent) of the colorgrid (lets say y = 100)) index is returning -1.
I know the data for y=100 is there because the Steema Editor shows the Series data. So why cant I get a valid index returned.
Everything works fine for a mouse-click for y < 100 just not for y = 100. Its as though y=100 is not being displayed on the chart when I think it is.
Any ideas whats going wrong?
Thanks
Im using a Contour as the DataSource to a ColorGrid
On a mouse click I get the index to the underlying series doing this.
Point p = myColorGrid.ValuePointToScreenPoint(myCursor.XValue, myCursor.YValue);
int index = myColorGrid.Clicked(p);
As long as index >= 0 then everything is fine and I can access the series data.
However when I click at the very top (maximumm y axis extent) of the colorgrid (lets say y = 100)) index is returning -1.
I know the data for y=100 is there because the Steema Editor shows the Series data. So why cant I get a valid index returned.
Everything works fine for a mouse-click for y < 100 just not for y = 100. Its as though y=100 is not being displayed on the chart when I think it is.
Any ideas whats going wrong?
Thanks