Jump to content
Sign in to follow this  
tbaror

add icon each GUICtrlCreateTreeViewItem creation

Recommended Posts

tbaror

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

Share this post


Link to post
Share on other sites
rasim

See in help file:

GUICtrlSetImage()

_GUICtrlTreeView_SetIcon()

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  

×