I put your code into my app and tested it and it did color the cell that errored out immediately. However when I clicked on other cells they were getting colored as well. I initially used this code that you provided:
Canvas.TextRect( Rect, Rect.Left+2, Rect.Top+2, Cells[acol, arow]);
and...