Sign in to follow this  
Followers 0
Vindicator209

Help with comboboxes!

5 posts in this topic

Eh, how to you get combo boxes to NOT order the items alphanumerically, but rather just in the order that they are added?


[center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center]

Share this post


Link to post
Share on other sites



Works fine here!

Sure you didn't use the style $WS_SORT?


Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites

Eh, how to you get combo boxes to NOT order the items alphanumerically, but rather just in the order that they are added?

Huh?? GUICtrlSetData() Doesn't sort them.

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.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Hmm, well, I add these to my combobox but doing this GuiCtrlSetData($Combo1,"item1|item2|item3")

but when it gets up in the 10s it starts looking like this:

Item1

Item11

Item12

.... ;continues until 2

Item2

Item21

Item22

and so on... its kinda weird, theres nothing necessarily wrong but its annoying

EDIT: :) well, I don't know what I did but it stopped doing that, but it must've been something I did...guessing its probably something with my loops

Edited by MethodZero

[center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center]

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

I see you corrected it, but just showing you it's not by default.

GUICreate("")
GUICtrlCreateCombo("", 10, 10, -1, -1)
GUICtrlSetData(-1, "item1|item2|item11|item10", "item11")
GUISetState()
While GUIGetMsg() <> -3
WEnd
Edited by SmOke_N

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.

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