Jump to content
Sign in to follow this  
Wb-FreeKill

Treeview->exspand

Recommended Posts

Wb-FreeKill

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
Wb-FreeKill

Use GUICtrlSetState($controlid,$GUI_EXPAND)

<{POST_SNAPBACK}>

thank you...!

Share this post


Link to post
Share on other sites
Wb-FreeKill

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
Wb-FreeKill

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
SlimShady

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
Wb-FreeKill

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.