From: Joel VanderWerf Date: 2005-08-09T13:04:39+09:00 Subject: Re: FXRuby or wxRuby? Curt Hibbs wrote: > Neil Hodgson wrote: > >> Lothar Scholz: >> >>> dvn> because of the file dialog used, which doesn't remember the last >>> location >>> dvn> visited, for example. >>> >>> No toolkit does this as it is the task of the GUI application itself, >>> otherwise different open dialogs would show the same directory. So you >>> must blame FreeRIDE here. >> >> >> >> Windows (2000/XP) remembers the directory on behalf of the >> application when using the standard file open and save dialogs. This >> is stored in the registry keyed on the application name in >> HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\LastVisitedMRU > > > > But FreeRIDE uses FXRuby/Fox, and Fox does not use the Windows standard > dialog. Therefore FreeRIDE would have to do this itself. > > Curt Sorta going off on a tangent here, as usual, but after working with Fox's registry for a while I went off and wrote a more ruby-oriented library for saving "preferences". Naturally, it uses yaml, and the preferences persist between program invocations and not just method invocations. Naturally, it's called "preferences". It's at: http://raa.ruby-lang.org/project/preferences/ I wrote it to use with FXRuby, but there's nothing particularly fox-bound about it, except for the version of the four-split.rb example that remembers splitter and window positions. It works just fine to remember directories in FXFileDialogs and their ilk. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407