Hi,
I am using several User Menus. Since the VP {Misc, Load {User} menu } command does not display the name of the loaded USER.MNU file,
I have written a short macro which does this.
// USER_MENU.VDM
// "Points and shoots" a .MNU file from a given directory.
// Please edit this directory as needed!
// Then loads it as the new user menu, similarly to VP.
// Enhancement to VP 6.01.3: it displays the FILENAME of the new user menu.
// PR January 19, 2002.
:USER_MENU:
Get_Filename(86,"c:\localvedit\user-mnu\*.mnu") //Get by point and shoot a .mnu file and put it ..
Reg_Load(124,@86) //Load the content of T-Reg 86 into the "{USER}" register.
File_Open(@86,OK) //
Reg_Set(85,FILENAME) // Put "just the filename" of the selected user menu fiile intp T-reg 85.
File_Close(NOMSG)
Reg_Set(84,"&U-")
Reg_Set(84,@85,APPEND)
Config_String(USER_MENU,@84)
Return
Wishlist: Actually, I do not need the extension of the USER.MNU file displayed.
I would need a "FILENAME2" string, which displays the filename without extension.
Thanks,
-peter
|
|