[ 本帖最后由 tongxj80 于 2010-5-12 17:43 编辑 ]作者: TIB 时间: 2010-4-22 21:20
DevComponents.AdvTree 是.NET的控件吧?作者: tongxj80 时间: 2010-4-23 08:54
是的,是DotNetBar控件。作者: TIB 时间: 2010-4-23 09:30
可以参考这里描述的一些思路看能不能解决: http://blog.csdn.net/Testing_is_ ... /03/13/5377441.aspx http://blog.csdn.net/Testing_is_ ... /03/13/5377341.aspx作者: tongxj80 时间: 2010-4-23 10:50 标题: 谢谢TIB 谢谢。
另外下面这段代码,为啥执行完后一点反应都没有?是不是有地方弄错了?
Set TestTree=SwfWindow(" ").SwfWindow(" ").SwfObject("advTree1").Object
TestTree.SelectedNode TestTree.Nodes.Item(0),Mouse作者: TIB 时间: 2010-4-23 20:34
是不是应该这样:
Set TestTree=SwfWindow(" ").SwfWindow(" ").SwfObject("advTree1").Object
TestTree.SelectedNode = TestTree.Nodes.Item(0)作者: tongxj80 时间: 2010-4-24 13:19
这样写法仍是一点反应都没有,总感觉哪里不对劲。我要做的事情是在item(0)上点击一下。
selectedNode是dotnetbar控件支持的方法:Public Sub SelectedNode( _
ByVal node As Node, _
ByVal action As eTreeAction _
)
Public Enum eTreeAction
Inherits Enum
Member Description
Keyboard The event was caused by a keystroke.
Mouse The event was caused by a mouse operation.
Collapse The event was caused by the Node collapsing.
Expand The event was caused by the Node expanding.
Code The event is caused programmatically from user code.作者: TIB 时间: 2010-4-25 09:36
改成这样呢?
TestTree.SelectedNode TestTree.Nodes.Item(0),Code