Sascha81 Posted September 3, 2008 Posted September 3, 2008 Hi, Is it possible to make double entrys in a ListBox ? I put some entrys in the List whis this Code, but when i execute it there is only one times the entry "Test" in my List. $List1 = GUICtrlCreateList("", 16, 72, 473, 227, $WS_BORDER) GUICtrlSetData($List1, "Test") GUICtrlSetData($List1, "Test") Can someone help me ? Bye Sascha
Sascha81 Posted September 3, 2008 Author Posted September 3, 2008 OK, i get it. When i use "_GUICtrlListBox_InsertString($List1, $test)" insted of "GUICtrlSetData($List1, "Test")" then i can have double entrys !
Eigensheep Posted September 3, 2008 Posted September 3, 2008 (edited) You can also separate the entries with a |. The code you have used in the first post sets "test" as the default. Try: $List1 = GUICtrlCreateList("", 16, 72, 473, 227, $WS_BORDER) GUICtrlSetData($List1, "Test|Test")oÝ÷ Øêí¡§]u«Z«^®ëjëh×6$list = GUICtrlCreateList("", 16, 72, 473, 227, $WS_BORDER) GUICtrlSetData($list,"test") GUICtrlSetData($list,"test|" & GUICtrlRead($list)) And welcome to the forum. Edited September 3, 2008 by eThirteen
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