FillRect doesn't paint the complete TStringGrid cell in Delphi XE2

前端 未结 4 1512
既然无缘
既然无缘 2021-01-04 03:16

FillRect doesn\'t paint the complete TStringGrid cell in Delphi XE2. There is a gap of 3 pixels on the left side in the default color (with B

4条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-04 03:35

    You can use the StringGrid1.CellRect(ACol, ARow) that returns the actual TRect of the cell instead of using the parameter Rect.

提交回复
热议问题