FLTK logo

Re: [fltk/fltk] Native File Chooser on windows with BROWSE_MULTI_DIRECTORY is unable to select multiple dirs (Issue #480)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] Native File Chooser on windows with BROWSE_MULTI_DIRECTORY is unable to select multiple dirs (Issue #480) erco77 Aug 12, 2022  
 

Pretty sure at the time FNFC added the BROWSE_MULTI_DIRECTORY flag, multiple folder selection was not supported by the WIN32 function, SHBrowseForFolderW(). And from what I can tell, it still does not.

However, while I don't have time to solve this issue, I did some research because I was curious which may help someone solve this issue.

It seems there's now "ways" to make this work using other WIN32 api's, such as the technique in this old Windows example code which I was able to reduce into multiple-folder-browser.zip which looks like this when run on Windows 10:

image

..which may be helpful to solve this issue, as I believe this works back to Win2K, and looks a bit nicer than ye olde and dated folder browser.

Also, in Windows Vista (and up), there's apparently support for multiple selection with the "common file dialog" interface: https://docs.microsoft.com/en-us/windows/win32/shell/common-file-dialog
..but I don't think we want to limit FNFC support to recent Windows releases.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <fltk/fltk/issues/480/1213572076@github.com>

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.