为什么nodecheckbox没有响应用户点击? [英] Why nodecheckbox is not responding user click?

查看:75
本文介绍了为什么nodecheckbox没有响应用户点击?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正在使用aga.controls.treeviewadv组件。我以前没用过它。我已将一个NodeCheckBox添加到treeView nodeControls,但单击时未选中该复选框。我将NodeCheckBox控件DataPropertyName设置为节点对象上的System.Windows.Forms.CheckState属性的名称,但它不起作用。你能否告诉我为什么复选框没有响应用户点击?



我尝试过:



这是定义属性的节点类:



public ref class AgaTreeFeatureNode:public Aga :: Controls :: Tree :: Node

{

public:

AgaTreeFeatureNode(System :: String ^ text):Aga :: Controls :: Tree :: Node (文字)

{

this->描述=文字;

}



属性系统:: Windows :: Forms :: CheckState ^已选中;

};



然后在设计师中我设置了NodeCheckBox DataPropertyName为Checked。



this-> nodeCheckBox1-> DataPropertyName = LChecked;

Hi,

I'm using an aga.controls.treeviewadv component. I haven' t used it before. I have added a NodeCheckBox to the treeView nodeControls, but the check box is not selected when clicking. I set the NodeCheckBox control DataPropertyName to the name of System.Windows.Forms.CheckState property on the node object, but it is not working. Could you please tell me why the check box is not responding the user click?

What I have tried:

Here is the node class where the property is defined:

public ref class AgaTreeFeatureNode : public Aga::Controls::Tree::Node
{
public:
AgaTreeFeatureNode(System::String^ text) : Aga::Controls::Tree::Node(text)
{
this->Description = text;
}

property System::Windows::Forms::CheckState^ Checked;
};

And then in designer I set the NodeCheckBox DataPropertyName to "Checked".

this->nodeCheckBox1->DataPropertyName = L"Checked";

推荐答案

有一个不同的错误可能。一个是控件是一些其他控件在你的复选框上方,或者框中的鼠标输入被禁用或被路由到某些其他控件,如连接到另一个控件。也许是一些错字。



最简单的解决方案是删除复选框并创建一个新的并重试。
There a different bugs possible. One is that the controls is that some other controls is above your checkbox, or mouse input in the box is disabled or is routed to some other control like connected to another control. Maybe some typo.

The easiest solution is most to delete the checkbox and create a new one and retry.


这篇关于为什么nodecheckbox没有响应用户点击?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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