delphi listview1 中添加check选中事件


本文整理自网络,侵删。

 delphi listview1 中添加check选中事件


请在ListView1MouseDown 中添加如下代码,即可完成;

var
Item: TListItem;
begin
Item := ListView1.GetItemAt(X, Y);
if (Button <> mbLeft) or (Item = nil) then Exit;
if htOnStateIcon in ListView1.GetHitTestInfoAt(X, Y) then
begin
if not Item.Checked then
showmessage(item.SubItems[2])
else

end;

相关阅读 >>

Delphi通过loadlibrary调用其他动态库

Delphi 用拼音首字符检索汉字的源代码

crossbow病毒开放源代码-熊猫烧香源始代码

Delphi listview 设置固定列宽

Delphi 主窗体最小化时不显示在任务栏

Delphi 如何快速读取非常大的文本文件

Delphi xe 共享一个之前封装的多进程共享内存的memorystream

Delphi 实现程序放放多个进程条

Delphi types of actual and formal var parameters must be identical

Delphi 利用for循环自我复制到全盘用timer监控

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...