Mehr, Assaph (Assaph)
2004-May-21 04:06 UTC
[Wxruby-users] For the FAQ: FileDialog default file name
On windows, the FileDialog class ignores filenames with slashes (/) as the default file name (4th parameter). Example scenario: path = "c:\\temp" name = File.join(''subdir'', ''somefile'') #=> ''subdir/somefile'' fd = FileDialog.new(self, "Please select file to open", path, name, "", OPEN) In this case you''d expect the dialog to be at ''c:\temp\subdir'' with a default value of ''somefile'', but it just ignores the 4th param and opens in c:\temp.
Reasonably Related Threads
- [1020] trunk/wxruby2/swig/classes/FileDialog.i: Added the Wx::FD_XXX constants for FileDialog variants
- [925] branches/wxruby2/wxwidgets_282/doc/textile/filedialog.txtl: Improvements to doc from wxWidgets 2.8
- Wx::FileDialog and common dialogs
- [ wxruby-Bugs-13457 ] Missing constants for FileDialog
- Wx::FileDialog Styles are not working