Bru Posted March 5, 2009 Posted March 5, 2009 This is probably really simple, I've searched, couldn't find anything. But.. I am using a List. $List1 = GUICtrlCreateList("", 8, 40, 217, 227) Adding a line to the List is fine, but it adds it in alpha order. How could i add it so the index is 0. So it adds the new item to the top? Thanks in advance. [right][/right]
Bru Posted March 5, 2009 Author Posted March 5, 2009 Thanks for that,I get this error,D:\Programming\AU3\oExcuse Generator\oExcuse Generator.au3 (9) : ==> Variable used without being declared.:$List1 = GUICtrlCreateList("", 8, 40, 241, 201, $WS_BORDER)$List1 = GUICtrlCreateList("", 8, 40, 241, 201, ^ ERRORPlease may someone help me out?Thanks in advance. [right][/right]
Authenticity Posted March 5, 2009 Posted March 5, 2009 Next time search it in the help file in the search tab ;] the first few results will probably tell you what or who lol. Anyway, include <WindowsConstants.au3>.
Bru Posted March 5, 2009 Author Posted March 5, 2009 Ahh crap. I searched for GUICtrlCreateList, And thought i had to include <GUIConstantsEx.au3> Aha, Thanks mate. [right][/right]
Bru Posted March 5, 2009 Author Posted March 5, 2009 Ahhhh crap... Why won't it add to the top of the list, instead it adds to the bottom :@ Sorry about all this. Thanks, [right][/right]
Authenticity Posted March 5, 2009 Posted March 5, 2009 _GUICtrlListBox_InsertString, it requires a handle to the control but GuiCtrlCreateList return the control ID so first get it's handle using GuiCtrlGetHandle and then call the aforementioned function with this handle.
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