RE: [perl-win32-gui-users] Most-Recently-Used files

2001-04-12 Thread Peopleclick Customer Support
Just as an fyi, most products use the registry for this. If you open regedit and search for MRU, you will find the general structure most apps use in the registry for this. Technically, all you really need to do is to create a new hive for your product under hklm\software\yourcompanyorappname\MR

RE: [perl-win32-gui-users] Most-Recently-Used files

2001-04-12 Thread Peter Eisengrein
Took a peek at podview.pl. Instead of a datafile it uses the registry. It also uses a hash instead of an array, so duplicates don't exist (if you open the same file multiple times). Good call, this is a better way to handle it, assuming the person using it is careful with the registry. -Or

RE: [perl-win32-gui-users] Most-Recently-Used files

2001-04-12 Thread sean
Look in podview.pl, in the samples directory that comes with the zip file, for code that implements such a menu. (Although I've never used this code, I noticed the feature when I was looking through the samples.) If you got Win32::GUI by PPM from ActiveState, you probably don't have this dire

RE: [perl-win32-gui-users] Most-Recently-Used files

2001-04-12 Thread Peter Eisengrein
I'd simply write the path\file to a data file somewhere and read it before you contruct your menu. You would write to this file every time someone opens or creates a file. You would probably also want to create a subroutine that limits how many files are kept, as such: ### untested! ### At the be