I have a form. On formshow, I initialize values of a field into stringgrid cells, but it shows a shadow under cell's texts.
I've used Persian charaters for field's values.
I did the same with english values, but it works fine.
I appreciate any suggestions.
example of the output:
With enaabled
DefaultDrawing
the text will be already rendered if you enterOnDrawCell
.Since you are calculating the needed rowheight in painting using
DT_CALCRECT
ofDrawText
you will have to calculated theRect
wich shall be filled/cleared withFillRect
.You can use
UnionRect
to get the final Rect which has to be filled (FillRect
in the example).