Jump to content

add icon each GUICtrlCreateTreeViewItem creation


Recommended Posts

hello,

i am writing a function that creating tree gui for computer list

and i would like to add an icon for each computer appearing in the tree is it possible ?.

please advice

thanks

$ClentL = GUICtrlCreateTreeView(32, 192, 225, 401, BitOr(256,55))
GUICtrlSetFont($ClentL, 8, 800, 0, "MS Sans Serif")

;*****************************Dispaly client /server tree **********************

Func DispComputers($strComuterLis)
    Dim $tTreeArr[1]
   
   
    
        
   
    For $i = 0 to UBound($strComuterLis) - 1

        $tTreeArr[$i] = GUICtrlCreateTreeViewItem($strComuterLis[$i],$ClentL)
        ReDim $tTreeArr[$i + 2]
    Next
   
    
EndFunc
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...