[Fxruby-users] Re: Fxruby-users digest, Vol 1 #57 - 2 msgs
Status: Inactive
Brought to you by:
lyle
From: <kun...@ho...> - 2003-09-12 08:43:30
|
First off, Sorry for the double mailing to the list. I had a bit of trouble with my email provider... jeroen wrote: >The FXDirList in FOX 1.0 did have this bug under Windows; the new one in >FOX 1.1.x however shows the list of drives as it was supposed to. > > > Ah, great. My bad - will find an upgrade then, if it is available for FXRuby. :) >The workaround for the old FXDirList is to prefix the drive letter in >front of the path; if you don't, the routines which turn a path into >a normalized absolute path will slap the default drive letter in front >[it will also expand environment variables and simplify the path]. > > > Actually, I did prefix with the drive letter. I realized afterward that there was a bigger problem than it ignoring my path, it probably really should show all drives, which it didn't. OTOH, this is apparently fixed in newer versions, so I'll upgrade. >As for the file types, it is as follows. On Windows, FOX uses the >registry but continues to follow its own bindings-database; > For someone not too familiar with the framework yet, can I find and use this database somewhere, to build upon when starting to build my own list if needed? >it *is* >possible to write a tool which populates this bindings database >from the "normal" Windows associations [the native file- associations >are splattered all over the place, and in some cases the icons have to >be lifted out of executables]. > > > Yeah, true that. Though I thought that there would be some kind of central repository or something, since a *lot* of third party programs, file managers and the like does manage to use the correct icons even if they don't use the built-in Win components. Of course, they might just have been doing a huge amount of hacking. >On Unix, one can simply drop a text file (the FOX registry is human-readable >text on UNIX) into $HOME/.foxrc/Desktop and have bindings available for >all applications. > > > > Yeah, I've seen how the system works, and I think I can manage to build my own associations if I have to. The thing I'd really like though was to steal any system associations, if available, at least to provide a start. :) Thanks a lot, that makes things a bit clearer... I'll probably come back with some more in a moment, though. ;) -- Kristoffer -- Sent using: Mozilla Thunderbird 0.2 (20030901) http://www.mozilla.org/projects/thunderbird/ |