Re: [gtkmm] FileSelection selecting directorys



FileSelection dialog is deprecated. Better use the new FileChooser widget/dialog. It has this functionality built-in as you can read from the follow-up by Murray. However if you really want to use the old FileSelection dialog there is a hack that you could use. You can read it in the Gtkmm tutorial -  see the example for FileSelection dialog. It basicly looks like this:
  // skip 
  Gtk::FileSelection dialog("Please choose a folder");
  dialog.get_file_list()->get_parent()->hide(); //Prevent the user from selecting a file.

-----------------------------------------------------------------
http://www.elmaz.com - Запознанства



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]