v3rt1g0 Posted July 11, 2008 Share Posted July 11, 2008 Is there a simple way to colorize the text of a list view sub item?Below is the function I'm trying to add color to. There are commented out GUICtrlSetColor, which don't work.If the array item matches a string, I want to color the text red.Func RefreshList() StatusUpdate("Refreshing List ...") _GUICtrlListView_DeleteAllItems($list) $in = 0 ;index For $i = 1 to $mArray[0] If $aHide[$i] = 0 Then ;filter _GUICtrlListView_AddItem($list, $aName[$i]) _GUICtrlListView_AddSubItem($list, $in, $aStat[$i], 1) _GUICtrlListView_AddSubItem($list, $in, $aOS[$i], 2) _GUICtrlListView_AddSubItem($list, $in, $aLang[$i], 3) _GUICtrlListView_AddSubItem($list, $in, $aIdle[$i], 4) _GUICtrlListView_AddSubItem($list, $in, $aApp[$i], 5) _GUICtrlListView_AddSubItem($list, $in, $aO[$i], 6) _GUICtrlListView_AddSubItem($list, $in, $aW[$i], 7) ;If $aW[$i] = "No" Then GuiCtrlSetColor(-1, 0xFFAAAA) _GUICtrlListView_AddSubItem($list, $in, $aP[$i], 8) ;If $aP[$i] = "No" Then GuiCtrlSetColor(-1, 0xFFAAAA) _GUICtrlListView_AddSubItem($list, $in, $aM[$i], 9) ;If $aM[$i] = "No" Then GuiCtrlSetColor(-1, 0xFFAAAA) _GUICtrlListView_AddSubItem($list, $in, $aAssi[$i], 10) _GUICtrlListView_AddSubItem($list, $in, $aAge[$i], 11) EndIf $in += 1 ;index Next StatusUpdate("Ready ...") EndFunc Link to comment Share on other sites More sharing options...
wraithdu Posted July 11, 2008 Share Posted July 11, 2008 Yep, here -http://www.autoitscript.com/forum/index.ph...st&p=524639 Link to comment Share on other sites More sharing options...
v3rt1g0 Posted July 11, 2008 Author Share Posted July 11, 2008 Sweet, thanks! I'll try that out tomorrow. Hopefully this thread will contain better keywords to point to that other one muttley Link to comment Share on other sites More sharing options...
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