Jump to content
Sign in to follow this  

add icon each GUICtrlCreateTreeViewItem creation

Recommended Posts



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


$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]

Share this post

Link to post
Share on other sites

See in help file:



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.