Jump to content

ListBox and double entrys


Sascha81
 Share

Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...