Jump to content
Sign in to follow this  
kui

_GUICtrlTreeViewExpand

Recommended Posts

kui

I have Java application open. The tree view structure in the left pane:

+ px

+ platform

+ core

I want to expend the tree view px in left pane. The code below run with exit code: 0. But I do not see any action in application and tree view does not get expanded.

#Include <GuiTreeView.au3>

WinWaitActive("Studio")

$treeview = GUICtrlCreateTreeView(128, 128, 1024, 768)

$px = GUICtrlCreateTreeViewitem("px", $treeview)

_GUICtrlTreeViewExpand($px, 1)

Please help!

Thanks.

Kui

Share this post


Link to post
Share on other sites
Zedna

Download Auto3Lib and use something like this:

#include <A3LTreeView.au3>

$hTree = ControlGetHandle("Title", "", "SysTreeView321")
if @Error then _Lib_ShowError("Unable to find TreeView window")

$hNode = _TreeView_FindNode($hTree, "px")
if $hNode = 0 then _Lib_ShowError('Unable to find "px" item')
_TreeView_Expand($hTree, $hNode)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×