Jump to content

GuiCtrlCreateList


BlankMind
 Share

Recommended Posts

I'm a bit confused about GuiCtrlCreateList command. Well, I want to make four things:

1 - Read the selected item of the list.

2 - Delete the selected item of the list.

3 - Move a item up and down, changing the order of the items.

4 - Know the number of the line (line 1, line 2...) that the selected item is.

I know I'm being boring, but I'm trying to post less questions I can, but after try doing something for 2 hours and can't do I have to ask someone :lmao:

Link to comment
Share on other sites

I'm a bit confused about GuiCtrlCreateList command. Well, I want to make four things:

1 - Read the selected item of the list.

2 - Delete the selected item of the list.

3 - Move a item up and down, changing the order of the items.

4 - Know the number of the line (line 1, line 2...) that the selected item is.

I know I'm being boring, but I'm trying to post less questions I can, but after try doing something for 2 hours and can't do I have to ask someone o:)

<{POST_SNAPBACK}>

Basically GUI functions don't give you direct programming with simple GUI functions.

1. GUICtrlRead is OK

2. you need to remove the selected item from a memorized list and reset the list to the new value statring with '|'

3. no GUI function except as 2. recreating with new list

4. GuiCtrlRecvMsg

In fact I thing CyberSlug mad a good wrapping Library to do what you want :lmao:

Link to comment
Share on other sites

See here http://www.autoitscript.com/forum/index.ph...wtopic=7999&hl= :lmao:

Wrapper functions: http://www.autoitscript.com/fileman/users/public/CyberSlug/listbox_wrappers.au3

1 = GuiCtrlRead($listRef)

2 = _GuiLB_DeleteString($ref, _GuiLB_GetCurSel($listRef))

3 = see example

4 = _GuiLB_GetCurSel($listRef)

Edited by CyberSlug
Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Link to comment
Share on other sites

  • 2 years later...

Thank you two guys, I'll study your answers and probably do what I want :).

Hey,

You can say i am another BlankMind. What I try to do is similar. Was you able to write code where you can select item from the listbox and remove it, #2

Your questions

1 - Read the selected item of the list.

2 - Delete the selected item of the list.

3 - Move a item up and down, changing the order of the items.

4 - Know the number of the line (line 1, line 2...) that the selected item is.

Please advise

Thanks

Link to comment
Share on other sites

Hey,

You can say i am another BlankMind. What I try to do is similar. Was you able to write code where you can select item from the listbox and remove it, #2

Your questions

1 - Read the selected item of the list.

2 - Delete the selected item of the list.

3 - Move a item up and down, changing the order of the items.

4 - Know the number of the line (line 1, line 2...) that the selected item is.

Please advise

Thanks

look to the GuiList.au3 include file, all your answers are there. If you need more help, ask.

[u]You can download my projects at:[/u] Pulsar Software
Link to comment
Share on other sites

See here

Wrapper functions: http://www.autoitscript.com/fileman/users/public/CyberSlug/listbox_wrappers.au3

That page comes back with

"404: The page/file you requested could not be found."

Sorry! We can't find the file or page you asked for. If you came from an external site the links may be out of date.
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...