Sign in to follow this  
Followers 0
Sascha81

ListBox and double entrys

3 posts in this topic

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

Share this post


Link to post
Share on other sites

OK, i get it.

When i use "_GUICtrlListBox_InsertString($List1, $test)" insted of "GUICtrlSetData($List1, "Test")" then i can have double entrys !

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by eThirteen

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  
Followers 0