Greg Ercolano wrote:
> Marc R.J. Brevoort wrote:
>> Hello,
>>
>> Does anyone have a version of Fl_Native_File_Chooser that allows one to 
>> enable the new folder button on Mac?

>       I think it might be disabled by default in my code via this line
>       in Fl_Native_File_Chooser_MAC.cxx:
> 
>             _keepstate = kNavDontNewFolderState;
> 
>       ..you might be able to just comment that line out to enable it.


   Or even better (now that I'm waking up), it looks like the right thing
   to do is to change the above line to read:

             if ( ! ( _options & NEW_FOLDER ) ) {
                 _keepstate |= kNavDontNewFolderState;
             }

   ..because then you can control it from your app with e.g.:

        fnfc_chooser->options(fltk::NativeFileChooser::NEW_FOLDER);

   This will affect BROWSE_DIRECTORY and BROWSE_MULTI_DIRECTORY.

   I'll see about applying that to all the chooser modes, so that
   it's universally applied, and put out a new release.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to