0
votes

I tried to compile file FMXTee.Chart.Grid.pas from TeeChart 9 for XE10 that used CellControlByRow function in FMX.Grid.pas for the following code :

with TColumnAccess(Columns[Col]).CellControlByRow(Row).BoundsRect.BottomRight do begin ... end;

I get running well when using RAD XE10 Seattle, and now I tried with RAD XE10.1 Berlin but get error message : [dcc32 Error] FMXTee.Chart.Grid.pas(1507): E2003 Undeclared identifier: 'CellControlByRow'

Then I compare file FMX.Grid.pas from XE10 packages versus FMX.Grid.pas from XE10.1 packages, and there are a lot of differences especially CellControlByRow() function does not exist any more in FMX.Grid.pas from XE10.1.

Now, I want ask how to change the code that use CellControlByRow function so it will run in RAD XE10.1 Berlin ?

1

1 Answers

0
votes

I would like suggest you replace the code below:

result:=TColumnAccess(Columns[Col]).CellControlByRow(Row).BoundsRect.BottomRight;

For next :

...
  var tmp : TFmxObject;
  begin 
  tmp:=TColumnAccess(Columns[Col]).CellControl;
  result:=TControl(tmp).BoundsRect.BottomRight
...

The above code should fix the compilation problem you’re experiencing. Could you confirm that?