Jump to content

Had issues with GUICtrlCreateList, I recommend additions to the manual entry

Recommended Posts

I have been spending the past 20 minutes or so experimenting with GUICtrlCreateList and I set it up for multiple selections and it only gives 1 result. So, naturally, I checked the manual page on it. Nowhere is there any mention on that manual page of any additional related functions other than the ones listed currently. After searching online I found that I need to use either _GUICtrlListBox_GetSelItemsText or _GUICtrlListBox_GetSelItems to get the full list of selected items.

The GUICtrlCreateList clearly allows for multiple selections to be made, yet the manual does not cover retrieving the user made selections. So I would like to recommend on the man page for GUICtrlCreateList that the related 2 functions at the very least be added to the related functions so that people, like myself, who are trying to use the function actually have enough information on the manual to come to the conclusion it might be one of the related functions to get multiple selections.

It would really clear things up in this regard. I may have missed something but I did a find for "multi" and found nothing on the page for it. It just says "To obtain the value of the control see GUICtrlRead()" which is misleading when multiple selection is enabled.

Link to post
Share on other sites
  • Moderators


It has been the practice in the Help file to link native functions only to other native functions (and UDF functions only to other UDF functions). This is because it is quite common for there to be problems when mixing the two, although of course many do work nicely together as you have just found. In my experience, most people seem to be quite well aware that there are control-specific UDF libraries which offer a wider range of functions than the relatively limited native functions. :)


Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:


ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area


Link to post
Share on other sites

Yes, Rarely do I ever look in the UDF section so it is not second nature to me. I only go on a manual safari every now and then. But now you mention it, I will likely check there more often for similar issues!

Link to post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...