简体   繁体   中英

TStringGrid. Row lines are not drawn when scrolling horizontally

In Delphi XE7 FMX platform StringGrid rows are not properly drawn when scrolling the content horizontally.

Steps to replicate:

Place a TStringGrid on a form, and add a few column(for example: 10).

At runtime scroll the grid content horizontally, and notice that the row lines are not drawn for the area scrolled into view.

在此处输入图片说明

I can confirm the issue in Delphi XE7. The row lines are not painted when you scroll the content horizontally. The same also for the alternating background color if you set that option. These are, however, two different problems. The line drawing has been fixed in Delphi XE8 (no RSP was found) but the alternating color was not fixed before Delphi 10.1 Berlin (see RSP 14197 ).

Trying to force a repaint (calling Repaint() or InvalidateRect() ) in Delphi XE7 did not fix the line drawing problem. It seems the only solution is upgrading to Delphi XE8.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM