我怎样才能设置了TListView在只有某些列的CheckBox? [英] How can I setup TListView with CheckBoxes in only certain columns?

查看:477
本文介绍了我怎样才能设置了TListView在只有某些列的CheckBox?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用德尔福2010年,我试图让用户在每排2个选项中的TListView之间进行选择。随着TListView的,我可以设置样式为vsReport并启用复选框,但是只有让我每行1复选框。我需要的是每行2复选框...专1的第2列第1列,1。

我试图做到的是非常相似的标准的Windows文件安全对话框:

有没有人有实施类似这样的TListView使用或任何建议,甚至MustangPeak的 TEasyListView <? / p>

解决方案

看看这个
如何在Delphi中设置一个复选框TStringGrid中?

更新
该链接显示如何绘制复选框。您可以使用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 this How to set a Checkbox TStringGrid in Delphi?

update The link shows how to draw checkboxes. You can do the same using TListView.OnCustomDrawItem and/or OnCustomDrawSubItem events

这篇关于我怎样才能设置了TListView在只有某些列的CheckBox?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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