Moderators Melba23 Posted December 1, 2012 Author Moderators Share Posted December 1, 2012 (edited) hero88,Easily done - I realised I was always looking for all folders. Try this beta version - now when you only ask for folders ($iDisplay = 2 or 3) the mask parameter applies to them: <snip>But I am also working on adding exclusion masks as well, so could I ask you for a bit of patience before I release a new version of the UDF as I may well have to modify my RecFileListToArray a bit as well to make it all tie together. M23Edit: See new release below. Edited December 2, 2012 by Melba23 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 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 2, 2012 Author Moderators Share Posted December 2, 2012 New version 2 Dec 2012Changed: Added the ability to both include and exclude files/folders from the tree. The $sMask parameter can now have 3 sections (separated by " | ") which define what to include, exclude and (if you are displaying both files and folders) which folders to exclude. See the RecFileListToArray thread (look in the first spoiler) for more details on exactly how these parameters affect the displayed tree.Note: You will need the new version of my RecFileListToArray UDF. Look in that UDF thread for the new code - it is also in the zip file in the first post. 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 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 19, 2012 Author Moderators Share Posted December 19, 2012 New version 19 Dec 2012Changed: The action taken when doubleclicking on a folder-only tree when $iDisplay is set to 3 has changed slightly. Now the item is expanded/contracted if there are children, but selected if there are none. The previous version never selected items on doubleclick, only via the "Select" button - which of course will still select the item regardless of whether children exist.New zip in the first post. 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 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 22, 2013 Author Moderators Share Posted May 22, 2013 New version 22 May 13Added: When both files and folders are displayed, the user can choose just files or both files AND folders. Just add +16 to the $iDisplay parameter. Thanks to lhk69 for the request. New UDF, example and zip in first post. 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 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 28, 2013 Author Moderators Share Posted May 28, 2013 New version 28 May 13Added: Pressing the Ctrl key while selecting will remove the item (or its last instance - see below) from the return list.Changed: By default the same item cannot now be selected multiple times - but by adding + 32 to the $iDisplay parameter this becomes possible.Thanks to lhk69 for the requests. New UDF and examples in first post. 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 Link to comment Share on other sites More sharing options...
Tankbuster Posted June 11, 2013 Share Posted June 11, 2013 Is it possible to limit the drive selection to a given list (like this dummy code) $sRet = _CFF_Choose("Select files dummy", 300, 500, -1, -1, "d:|g:", "", 0 + 4 + 8 + 32, 50) mind the : "d:|g:" Otherwise I need to add a pre-dialog to select the drive from a list and than cal the _CFF_Choose. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 11, 2013 Author Moderators Share Posted June 11, 2013 Tankbuster,That does not look too difficult to implement - I will see what I can do. 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 Link to comment Share on other sites More sharing options...
Tankbuster Posted June 11, 2013 Share Posted June 11, 2013 (edited) Thx, I just about to follow your post #34 here (TV Explorer). But I will give it a try, if you code half as fast as posting a reply :-) And keep in mind the "|" is just a 2 seconds-thought-idea.... Edited June 11, 2013 by Tankbuster Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 11, 2013 Author Moderators Share Posted June 11, 2013 (edited) TankBuster,That was pretty easy - instead of passing "" as the $iRoot parameter, just pass a list of the drives you want to access (e.g. "cde" - no colons). Here is a Beta and an example to try: See new Beta belowComments from you or anyone else welcome, as always. M23 Edited June 12, 2013 by Melba23 Beta code removed 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 Link to comment Share on other sites More sharing options...
Tankbuster Posted June 11, 2013 Share Posted June 11, 2013 (edited) Great, I love it. Now I do not "explore TV", I choose my files :-). BTW: Does it makes sense to "autoload" the first drive in the combobox? Edited June 11, 2013 by Tankbuster Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 12, 2013 Author Moderators Share Posted June 12, 2013 Tankbuster,Excellent. Does it makes sense to "autoload" the first drive in the combobox?I will take a look at how something like that could be implemented - perhaps something along the lines of "cde|d" where it autoloads "d". It will all depend how complicated it is to code. 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 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 12, 2013 Author Moderators Share Posted June 12, 2013 (edited) Tankbuster,Have a look at this Beta version - it uses the syntax I suggested above: See new releaseHow is that? M23 Edited June 14, 2013 by Melba23 Removed Beta code 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 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 14, 2013 Author Moderators Share Posted June 14, 2013 New version 14 Jun 13Added: If you pass a list of drive letters in the $sRoot paramenter, _CFF_Choose will display only these drives in the drive combo at the top of the dialog - any invalid drive letters will be ignored. If you want one of these drives to be loaded automatically, then add "|drive_letter" after the list. Passing just "|drive_letter" in the parameter (with no drive list) automatically loads that drive and all ready drives will be displayed in the combo. See Example_3 script for more details.This is a non-scriptbreaking change. Thanks to Tankbuster for the request. New UDF and new examples in first post. 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 Link to comment Share on other sites More sharing options...
michaelslamet Posted June 16, 2013 Share Posted June 16, 2013 Hi Melba, Thanks for this great UDF I use this to allow users to be able select multiple folder without duplicate: $sRet = _CFF_Choose("Ex 4: Select multiple folder (duplicates allowed)", 300, 500, -1, -1, "|d", Default, 3, 20) Questions: 1. If users choose a wrong folder, can he delete it from the list? Maybe something like by right click and choose "delete" from bottom box? It's overwelming If users already choose many folders (or files), then suddently he choose a wrong one, he need to cancel them all and start select again from beginning. 2. is it possible also display/choose a network folder (not mapped) something like servernameserver-shared ? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 16, 2013 Author Moderators Share Posted June 16, 2013 michaelslamet,- 1. Look in the function header - if the author writes one it is usually worth reading:; Remarks .......: - For multiple selection: ; - Press "Add" or doubleclick to add item to list, "Return" when selection ended ; - Pressing CTRL while adding deletes last instance of selection from the listThe last line should give you the answer. - 2. As I do not have access to a network, I have no idea. Have you tried? 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 Link to comment Share on other sites More sharing options...
michaelslamet Posted June 16, 2013 Share Posted June 16, 2013 For question number 1, found this on the remarks: "Pressing CTRL while adding deletes last instance of selection from the list" Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 16, 2013 Author Moderators Share Posted June 16, 2013 michaelslamet,I did say it was worth reading the header! 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 Link to comment Share on other sites More sharing options...
michaelslamet Posted June 16, 2013 Share Posted June 16, 2013 Melba, Yes, I should see the remark first before ask, next time I will see the code first before asking! About network drive, I'm going to test it tommorow at office, have no acess to network at home. Thanks, Melba! Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 16, 2013 Author Moderators Share Posted June 16, 2013 michaelslamet,Glad you find the UDF useful. Please let me know the results of the network test. 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 Link to comment Share on other sites More sharing options...
michaelslamet Posted June 16, 2013 Share Posted June 16, 2013 Yes, It's very useful, and I believe the others will found it useful too About the network drive, I will test at office and let you know Link to comment Share on other sites More sharing options...
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