crystalburner Posted September 16, 2006 Share Posted September 16, 2006 Okey Hi! So, I'm creating a list and populating it with items for $i = 1 to $countlines2 ProgressSet( (100 / $countlines2 * $i),$i & " invoices added") $line=filereadline($getfiles,$i) $line=StringTrimRight ( $line, 4) _GUICtrlListAddItem($invoicelist, $line) Next Thats fine. It is only possible to select one item at a time in the list, happens to be invoices, you can open,print or delete them thats ok. What I need to be able to do is differentiate some of them from others. I have some code that works out which invoices are older than 30 days but what I want to do is have them show in red or bold font in the guilist and I can not find any function that allows you to modify the appearance of some of the list items. Has anyone done something similar already? C Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 16, 2006 Moderators Share Posted September 16, 2006 So.... Can you clarify if you are using ListView or List? GUI function call is for "List" not listview. (Just a clarification question) Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
GaryFrost Posted September 16, 2006 Share Posted September 16, 2006 Okey Hi!So, I'm creating a list and populating it with itemsfor $i = 1 to $countlines2ProgressSet( (100 / $countlines2 * $i),$i & " invoices added")$line=filereadline($getfiles,$i)$line=StringTrimRight ( $line, 4)_GUICtrlListAddItem($invoicelist, $line)NextThats fine. It is only possible to select one item at a time in the list, happens to be invoices, you can open,print or delete them thats ok.What I need to be able to do is differentiate some of them from others. I have some code that works out which invoices are older than 30 days but what I want to do is have them show in red or bold font in the guilist and I can not find any function that allows you to modify the appearance of some of the list items.Has anyone done something similar already?CIf you were using a ListView instead of a Listbox you could color them and with-out having to use the UDFs SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
crystalburner Posted September 16, 2006 Author Share Posted September 16, 2006 If you were using a ListView instead of a Listbox you could color them and with-out having to use the UDFs$invoicelist=GUICtrlCreateList("",0,0,600,350)Im using this to create the listDont mind using any method as long as it works! Link to comment Share on other sites More sharing options...
GaryFrost Posted September 16, 2006 Share Posted September 16, 2006 $invoicelist=GUICtrlCreateList("",0,0,600,350)Im using this to create the listDont mind using any method as long as it works!Like I said Use the ListView, you can set backcolor and textcolor for each item in the listview. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
crystalburner Posted September 16, 2006 Author Share Posted September 16, 2006 Like I said Use the ListView, you can set backcolor and textcolor for each item in the listview.What is listview?I need the list in a GUI as there are menus and buttons for actions regarding items in the list.N Link to comment Share on other sites More sharing options...
GaryFrost Posted September 16, 2006 Share Posted September 16, 2006 What is listview?I need the list in a GUI as there are menus and buttons for actions regarding items in the list.NLook in the help SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. 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