Search Locate Previous Next Contents

Most Recently Used (MRU)


Description
Manages the Most Recently Used files list on your File Menu.

When refreshed with a file name, it checks this against the current list, and updates as required. If the file is already there, it gets pulled to the top. Otherwise it is added, and if the limit on number of files has been reached, it drops the last one.

It will also maintain an entry called:

 [Recent File List]
 File1=blaaah

... in your .INI file or with a given Registry key, if you give a file name or path as the second element in the reference. The default limit is to remember 4 files.

N.B. the <File Menu Name> in the reference data is the name in square brackets (such as [file]) in your menu definition. This is case-sensitive, so be careful!

Names longer that the allowed maximum are shortened from the middle outwards e.g. S:\server\...\...\myfile.qwe to limit menu width.

Class Property Table
NameTypeDefaultDescription
File nameRuntimeCurrent File Name
SpecificationRuntime(File Menu name)(INI file or Registry path)(No. of files {4})
Max lengthInt36Maximum name-length before shortening
StorageOneOfWhere to store the list

Class-specific Events
FOFile Open Request (MRU)

Class-specific Functions
SetSectionChange the default name for the INI section or Registry key


Continue to: Most Recently Used – FO Event
© Copyright Causeway Graphical Systems Ltd 2003