hezi Posted June 7, 2011 Share Posted June 7, 2011 Hey ALL, i need your help with GUI controls. (my first real GUI script.... sorry if i missed something) i created list view in my GUI and it work perfect for me. the only issue that i have is when i try to color the text, my goal is creating list with the results of the operations user made. if it fail the line will show in red for example. the list show all the operation made, if one operation success it will show in green and the next operation will show red and so on. when i change the color in control it colors the all text. I want create different lines with different colors. maybe my mistake is using this kind of control and if you think it better use other control i will be glade to take your recommendations. $List1 = GUICtrlCreateList("", 8, 56, 769, 578) func Update_List_view($list,$text,$color) ;0xff0000 -red ;0x008000 - green ;0x000000 - black _GUICtrlListBox_BeginUpdate($list) GUICtrlSetColor($list, $color) _GUICtrlListBox_AddString($list,$text ) _GUICtrlListBox_UpdateHScroll($list) _GUICtrlListBox_End`($list) ;GUICtrlSetData($List,$text,0) EndFunc Link to comment Share on other sites More sharing options...
UEZ Posted June 7, 2011 Share Posted June 7, 2011 Look to this: Maybe it is what you are looking for. Br, UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
hezi Posted June 12, 2011 Author Share Posted June 12, 2011 Look to this: Maybe it is what you are looking for.Br,UEZthanks!!i will try. 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