Added: When checkboxes are used, selecting or clearing an item with the Alt key selected will check/clear all items on the path higher in the tree - as long as the +512 "only show deepest on path" option is selected and other items are not checked on the same path. If the Ctrl key is pressed, all items lower in the tree will be checked/cleared as long as they have actually been expanded at least once - unexpanded items are unaffected as they do not exist in the dialog tree until they have been expanded. Pressing both Ctrl & Alt keys will affect both higher and lower items.
Again thanks to Deye for the idea and lots of beta testing.
Note you need AutoIt v22.214.171.124 or later to run this release of the UDF as it will not run with earlier versions.
Previous version descriptions: ChangeLog.txt 11.15KB 14 downloads
I was fed up with using the native FileOpenDialog and FileSelectFolder which appeared anywhere on the screen in seemingly random sizes and often allowed users to select files from other than the path desired. So I decided to write my own version of an Explorer-type treeview and here it is: ChooseFileFolder.
What are the main advantages of this UDF over the normal dialogs?
- Common format for both file and folder selection.
- Ability to size and place the dialog where you want it rather than how Windows last left it.
- Ability to select (and delete) multiple items - even from different folders or drives. You can also select both files and folders from the same tree.
- Ability to preselect items.
- And there is also a function to allow you to use an existing treeview in your own GUI to display the folder tree - no need to have a dialog at all.
Here is a zip file with the UDF and several example scripts: ChooseFileFolder.zip 21.08KB 72 downloads
As usual happy to take feedback and, preferably, plaudits.
Edited by Melba23, 13 March 2015 - 01:32 PM.