为什么InvalidateRow / InvalidateColum不起作用? [英] Why InvalidateRow/InvalidateColum does not work?

查看:133
本文介绍了为什么InvalidateRow / InvalidateColum不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

InvalidateRow和InvalidateColum不适用于TStringGrid。这些方法不会使整个Row / Col失效。

InvalidateRow and InvalidateColum are not working for TStringGrid. The methods will not invalidate the entire Row/Col.

InvalidateGrid始终有效(因此,在发现错误的原因之前,这可能是一个肮脏的工作)。 br>
在某些情况下(似乎是随机的),InvalidateRow和InvalidateColum似乎也可以工作。
更新:我发现哪种情况会触发该错误:网格必须大于可见区域并且位置在视图外部。

InvalidateGrid always works (so this could be a dirty work-arround until the cause of the bug is found).
In some circumstances (it seems to be random) InvalidateRow and InvalidateColum seem to work also. Update: I have found which circumstances will trigger the bug: the grid must be larger than the visible area and the position is outside of the view.

任何

Delphi 7,Win 7 32位

Delphi 7, Win 7 32 bits

推荐答案

已解决 (Delphi VCL错误)

"SOLVED" (Delphi VCL bug)

我发现此错误自Delphi 1开始存在: http://qc.embarcadero.com/wc/qcmain.aspx?d=81060

I have found that this bug exists since Delphi 1: http://qc.embarcadero.com/wc/qcmain.aspx?d=81060

感谢Jeroen Wiert Pluimers提供解决方案!

Thanks Jeroen Wiert Pluimers for providing a solution!

更新:

Embarcadero QC链接永久断开(有人应该教那些家伙使用 301重定向),但这是解决方案

此外,这是WayBackMachine:
https://web.archive.org/web/20171220161153/http: //qc.embarcadero.com/wc/qcmain.aspx?d=81060

Also, here is the WayBackMachine: https://web.archive.org/web/20171220161153/http://qc.embarcadero.com/wc/qcmain.aspx?d=81060

这篇关于为什么InvalidateRow / InvalidateColum不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆