-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
虚表 ListView #205
Comments
测试并无问题啊,不知道你是怎么操作的。 这是我使用 data := TTempItem{Caption: "标题", Sub1: "子项1", Sub2: "子项2", Sub3: "子项3", Sub4: "子项4", Sub5: "子项5", Checked: false}
tempData = append(tempData, data)
f.ListView.Items().SetCount(int32(len(tempData))) |
` f.isWindows = runtime.GOOS == "windows"
|
你这更新数据内容,需要调用控件的重绘(Repaint)之类的方法。 |
我那个已经调用一秒重绘一次了,问题就是一行数据就不会重绘,两行以上的数据就正常,你可以测试一下就知道了 |
我用你这个代码测试了下,没有发现问题,可以正常更新。你可以考虑下用最新的lazarus重新编译下liblcl看看。 |
我这里如果是两条数据以上也是正常刷新的,就是一条数据的时候才不正常刷新,永远是0 |
刚准备上传个新的liblcl,发现不行哦,得自己编译的才可以。 |
还是不行,会不会是win11的问题?这个问题不大,但是我觉得很奇怪,解决不了就不管他了 ,反正不影响使用 |
不知道,我在win10上编译的 |
虚拟表 ListView 在加载一行数据的时候 OnListViewData 这个事件只会促发一次,如果有2行数据的情况下OnListViewData 就正常促发
The text was updated successfully, but these errors were encountered: