Sign in to follow this  
Followers 0
Wb-FreeKill

Treeview->exspand

8 posts in this topic

Is there a style or something witch exspands the treeviewitem? so when i run my script, that item would be exspanded

Share this post


Link to post
Share on other sites

Use GUICtrlSetState($controlid,$GUI_EXPAND)

<{POST_SNAPBACK}>

thank you...!

Share this post


Link to post
Share on other sites

ahm, this aint working :)

$treeview = GUICtrlCreateTreeView (0,45,132,275,BitOr($TVS_HASBUTTONS,$TVS_HASLINES,$TVS_LINESATROOT,$TVS_DISABLEDRAGDROP,$TVS_SHOWSELALWAYS),$WS_EX_CLIENTEDGE)
$generalitem = GUICtrlCreateTreeViewitem ("General",$treeview)
GUICtrlSetState($generalitem,$GUI_EXPAND)
$ReadMeitem = GUICtrlCreateTreeViewitem ("ReadMe",$generalitem)
$Logsitem = GUICtrlCreateTreeViewitem ("Logs",$generalitem)
$FilesLog = GUICtrlCreateTreeViewitem ("Files Log",$generalitem)

Share this post


Link to post
Share on other sites

Hi :)

expanding only working when the treeview is visible, so you have to show the gui at first!

<{POST_SNAPBACK}>

hmm, what you mean... when i run my program, the treeview is there, this was only a part of my code... but the treeview item aint exspanded when i run it

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Put this line below GUISetState() and tell us if it works.

GUICtrlSetState($generalitem,$GUI_EXPAND)
Edited by SlimShady

Share this post


Link to post
Share on other sites

O, i misunderstod it, it works fine now thx..

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  
Followers 0