在TdxTreeList控件中我增加了一个TdxTreeListCheckColumn,但是在点标题事件中判断是否选中的时候老是TRUE,代码如下:
procedure TForm1.coIfCheckedToggleClick(Sender: TObject;
const Text: String; State: TdxCheckBoxState);
var
lcNode: TdxTreeListNode;
lbSelect: Boolean;
begin
lcNode := dxTreeList.FocusedNode;
if Assigned(lcNode) then
begin
lbSelect := lcNode.Values[coIfChecked.Index];
if lbSelect then
showmessage('true')
else showmessage('false');
end;
end;
阅读(642) | 评论(0) | 转发(0) |