I'm drawing on the Canvas property of a StringGrid (well, in fact its the 3rd party TStringAlignGrid object which is pretty much like TStringGrid). I need to draw some shapes on the canvas and, after a while, erase them. Nothing complicated.
The thing is that if I call the refresh (or repaint or invalidate) method of the grid THE WHOLE grid gets repainted which make my screen flick like hell.
Is there anyway I can make some region (TRect) or cells to get repainted without getting the whole component refreshed ? I know that the internal code of the component does that. For example, After I draw a shape on the canvas, if I select the cell behind it the selected cell gets repainted and the rest of the grid remains ok.
Any hint ?