问题描述
我使用德尔福2010年,我试图让用户在每排2个选项中的TListView之间进行选择。随着TListView的,我可以设置样式为vsReport并启用复选框,但是只有让我每行1复选框。我需要的是每行2复选框...专1的第2列第1列,1。
我试图做到的是非常相似的标准的Windows文件安全对话框:
有没有人有实施类似这样的TListView使用或任何建议,甚至MustangPeak的
看看这个
更新
该链接显示如何绘制复选框。您可以使用TListView.OnCustomDrawItem和/或OnCustomDrawSubItem事件做同样的
I'm using Delphi 2010, and I am trying to allow the user to select between 2 options per row in a TListView. With TListView, I can set the style to vsReport and enable Checkboxes, but that only gets me 1 checkbox per row. What I need is 2 checkboxes per row...specifically 1 for the 1st column and 1 for the 2nd column.
What I am trying to accomplish is very similar to the standard Windows file security dialog:
Does anyone have any suggestions for implementing something like this using TListView or even MustangPeak's TEasyListView?
Take a look at thisHow to set a Checkbox TStringGrid in Delphi?
updateThe link shows how to draw checkboxes. You can do the same using TListView.OnCustomDrawItem and/or OnCustomDrawSubItem events
这篇关于我怎样才能设置了TListView在只有某些列的CheckBox?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!