Jump to content

Recommended Posts

Posted

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]

Posted

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, ^ ERROR

Please may someone help me out?

Thanks in advance.

[right][/right]

Posted

Ahh crap.

I searched for GUICtrlCreateList,

And thought i had to include <GUIConstantsEx.au3>

Aha,

Thanks mate.

[right][/right]

Posted

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]

Posted

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

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
×
×
  • Create New...