ddeerr Posted August 9, 2006 Posted August 9, 2006 hi, i have again some question sorry :"> i can't find how to get number of caracters in a tree view item. I know that we can specify the max number of car but how to get the ones put in automatically by program (its random)? In a another way how can i get the total number of available car in the treeview cause i guess my random put in can be with maaaaaaaannnnnnnnnnnyyyyyyy car ? tx
ddeerr Posted August 9, 2006 Author Posted August 9, 2006 I try to use it yes, i try with this little code but it doesn't or when i take parameters from window in au3info.au3 about controlID. This control is listed as "SysListView321" ; here i create a "sub" gui window which depend on $fenetrePrincipale $fenetreRapport = GUICreate(".RaPPorT Kojak.", 1000, 700, -1, -1 , -1, -1, $fenetrePrincipale) $Treeview_4 = GUICtrlCreateTreeView(20, 10, 850, 640) GUISetState(@SW_SHOW, $fenetreRapport) WinWait(".RaPPorT Kojak.") If Not @error Then $wh4 = WinGetHandle(".RaPPorT Kojak.") WinWaitActive($wh4, "", 5) If Not @error Then $Group_1 = GUICtrlCreateTreeViewItem("7", $Treeview_4) GUICtrlCreateTreeViewItem("jjjjjjjjjjjjjjjjjjj", $Treeview_4) EndIf EndIf sleep(500) ; this comment code works ;$pos = ControlGetPos($wh4, "", 4105) ;MsgBox(0, "Window Stats:", "POS: " & $pos[0] & "," & $pos[1] & " SIZE: " & $pos[2] & "," & $pos[3] ) ; these comment code don't works with this control, the others one OK MsgBox(0, "", "8" & String(ControlListView($wh4, "", 4105, "GetSelected")) & "8") ; return blank string MsgBox(0, "", "8" & String(ControlListView($wh4, "", 4105, "GetSubItemCount")) & "8") ; return 0 ;... then my getmsg() management if someone have an idea plz
GaryFrost Posted August 9, 2006 Posted August 9, 2006 (edited) if your using beta, things should work a whole lot easier for you for example MsgBox(0, "", GUICtrlRead($Treeview_4, 1)) oÝ÷ ÚØb²+0«Hv'm¢×¬´µìyÊ'v®±ëh+Þëbëh±é^r֧צjëh×6 ; here i create a "sub" gui window which depend on $fenetrePrincipale ;~ $fenetreRapport = GUICreate(".RaPPorT Kojak.", 1000, 700, -1, -1 , -1, -1, $fenetrePrincipale) $fenetreRapport = GUICreate(".RaPPorT Kojak.", 1000, 700) $Treeview_4 = GUICtrlCreateTreeView(20, 10, 850, 640) GUISetState(@SW_SHOW, $fenetreRapport) $Group_1 = GUICtrlCreateTreeViewItem("7", $Treeview_4) GUICtrlCreateTreeViewItem("jjjjjjjjjjjjjjjjjjj", $Treeview_4) Sleep(3000) ; this comment code works MsgBox(0, "", GUICtrlRead($Treeview_4, 1)) ;... then my getmsg() management Edited August 9, 2006 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
ddeerr Posted August 10, 2006 Author Posted August 10, 2006 if your using beta, things should work a whole lot easier for you for example MsgBox(0, "", GUICtrlRead($Treeview_4, 1)) this is what I did to test, I set a 3 second pause to give me time to select an item I check the Beta documentation this functionnality is exactly what i need, i'll test it tx
ddeerr Posted August 10, 2006 Author Posted August 10, 2006 (edited) it works tx, iguess with this version i'll find what i need to do jobs Edited August 10, 2006 by ddeerr
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