Relative Content

Tag Archive for c++fltkfilechooser

Trying to use the add_extra member function in Fl_File_Chooser to add an extra button (FLTK)

I wish to use the Fl_File_Chooser to select a directory path for use in my main code. The main code uses a button and callback to run the Chooser in cb_dirselect(). If I set the Chooser in DIRECTORY mode, the CREATE capability (which i need) is disabled. I can use CREATE mode together with filter “*.” to give a directory listing. However selecting a directory disables the “OK” return button. A work-around of typing any character in the “Filename” box activates the “OK” button and returns the directory to the parent window as desired.