Trying to add an extra drawing ability to the drawgrid as to fill in the unused area with a custom bitmap brush.
The idea is to allow the Grid to be sized passed the number of cells that exists there by leaving some space around it. I wanted to fill that area with a water mark type of brush indicating special features are available.
There is an OnPaint event (not published) which is part of the customeControl class however, it gets called in the overridden PAINT handler inside the CustomGrid.Paint and thereby gets covered by all the following functions of updating the grid.
Below is the final seciton of the Paint handler for the CustomGrid.Paint
inherited Paint; // <<<<< useless. gets overridden with following code.
if FUpdateCount=0 then begin
DrawEdges;
DrawAllRows;
DrawColRowMoving;
DrawBorder;
end;
// Should be here.
I patched into the class locally to grab the Paint handler and then do my own custom painting outside the cell area.
That worked fine but really, don't you think the OnPaint event should be corrected in its location of code? If so, one could even publish it.
Jamie