Jump to content

Help with comboboxes!


Recommended Posts

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]

Link to comment
Share on other sites

  • Moderators

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.

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

  • Moderators

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.

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...