Vindicator209 Posted March 19, 2008 Share Posted March 19, 2008 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 More sharing options...
monoceres Posted March 20, 2008 Share Posted March 20, 2008 Works fine here! Sure you didn't use the style $WS_SORT? Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 20, 2008 Moderators Share Posted March 20, 2008 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 More sharing options...
Vindicator209 Posted March 20, 2008 Author Share Posted March 20, 2008 (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:Item1Item11Item12.... ;continues until 2Item2Item21Item22and so on... its kinda weird, theres nothing necessarily wrong but its annoyingEDIT: 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 March 20, 2008 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 More sharing options...
Moderators SmOke_N Posted March 20, 2008 Moderators Share Posted March 20, 2008 (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 March 20, 2008 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 More sharing options...
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