Hello!
I noticed that as of PureBasic 6.03 PathRequester() still uses the old "Open Folder" dialog, even though there is a new and much more user-friendly dialog available since Windows Vista. This new dialog looks like the dialog used by OpenFileRequester() and SaveFileRequester().
As far as I know, this new dialog is available through the IFileDialog interface, but I couldn't try it out myself because I don't know how to use COM in PureBasic.
If possible, please change PathRequester() to use the new dialog on Windows!
Apparently it is necessary to call IFileDialog::SetOptions() and add FOS_PICKFOLDERS to the options in order to switch IFileDialog into folder selection mode. But again, I haven't tried this myself.
Some (hopefully helpful) documentation on this topic:
https://learn.microsoft.com/en-us/windo ... ile-dialog
https://learn.microsoft.com/en-us/windo ... filedialog
https://learn.microsoft.com/en-us/windo ... setoptions
https://learn.microsoft.com/en-us/windo ... logoptions
Thanks,
Nils
Update PathRequester() to use IFileDialog on Windows
Re: Update PathRequester() to use IFileDialog on Windows
maybe you should look at this.
Select folder dialog
Select folder dialog
Just because it worked doesn't mean it works.
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
Re: Update PathRequester() to use IFileDialog on Windows
Thanks! I will check this out.
However, I still think that PathRequester() should be updated, given that the new dialog was introduced 17 years ago.