Sign in to follow this  
Followers 0
ddeerr

questions about TreeViewItem

5 posts in this topic

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 :whistle:


MsgBox(0, "Steven Seagal", "Les poches bourrées de Pesos")

Share this post


Link to post
Share on other sites



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


MsgBox(0, "Steven Seagal", "Les poches bourrées de Pesos")

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 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.

 

Share this post


Link to post
Share on other sites

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

MsgBox(0, "Steven Seagal", "Les poches bourrées de Pesos")

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

it works tx, iguess with this version i'll find what i need to do jobs :whistle:

Edited by ddeerr

MsgBox(0, "Steven Seagal", "Les poches bourrées de Pesos")

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