Wb-FreeKill Posted March 16, 2005 Posted March 16, 2005 Is there a style or something witch exspands the treeviewitem? so when i run my script, that item would be exspanded
Holger Posted March 18, 2005 Posted March 18, 2005 (edited) Use GUICtrlSetState($controlid,$GUI_EXPAND) Edited March 18, 2005 by Holger Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView
Wb-FreeKill Posted March 18, 2005 Author Posted March 18, 2005 Holger said: Use GUICtrlSetState($controlid,$GUI_EXPAND)<{POST_SNAPBACK}>thank you...!
Wb-FreeKill Posted March 18, 2005 Author Posted March 18, 2005 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)
Holger Posted March 18, 2005 Posted March 18, 2005 Hi expanding only working when the treeview is visible, so you have to show the gui at first! Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView
Wb-FreeKill Posted March 18, 2005 Author Posted March 18, 2005 Holger said: 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
SlimShady Posted March 18, 2005 Posted March 18, 2005 (edited) Put this line below GUISetState() and tell us if it works. GUICtrlSetState($generalitem,$GUI_EXPAND) Edited March 18, 2005 by SlimShady
Wb-FreeKill Posted March 19, 2005 Author Posted March 19, 2005 O, i misunderstod it, it works fine now thx..
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now