Morthawt Posted February 22, 2015 Posted February 22, 2015 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. Free and easy Autoit scripting video tutorials (plus more videos always coming!) General video tutorials, especially correct and safe TeamSpeak permissions tutorials.
Moderators Melba23 Posted February 22, 2015 Moderators Posted February 22, 2015 Morthawt,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. M23 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: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Morthawt Posted February 22, 2015 Author Posted February 22, 2015 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! Free and easy Autoit scripting video tutorials (plus more videos always coming!) General video tutorials, especially correct and safe TeamSpeak permissions tutorials.
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