Posted by: Graeme
« on: March 06, 2025, 10:23:57 PM »Sorry for the late reply. I suspect modifying xml files is not a good idea. You might need to package your stuff as a hotfix. If you have to cope with multiple versions of slickedit it can get even more complicated. I think you can detect the version of slick at runtime but maybe not at compile time, so you could write some slick code that loaded particular files according to the runtime version.
A long time ago I posted some macros that replaced some of the slick built in menus with extra things but the user had to manually set up a #define to indicate the version of slickedit.
A long time ago I posted some macros that replaced some of the slick built in menus with extra things but the user had to manually set up a #define to indicate the version of slickedit.
Code: [Select]
#define SLICK_V13
#ifdef SLICK_V12
_menu _projecttb_folder_menu {
submenu "&More","","","" {
"Add &new file","projecttb-add-new-file-here","","","Add new file to project";
"Add new item from &template","projecttb-add-template-item-here","","","Add item to project from template";
"New &folder","projecttb-add-folder-here","","","Create new folder here";
"&Explore","projecttb-explore-from-here","","","Shell explorer";
"&Open file","projecttb-open-from-here","","","Open file to edit";
"-","","","","";
"She&ll from here","projecttb_shell_from_here","","","Open OS shell";
"Folder &MRU","projecttb-show-folder-MRU","","","";
"Add to folder MR&U","projecttb-add-to-folder-MRU","","","";
"Change &directory to here","projecttb-cd-to-here","","","";
"-","","","","";
"Copy pathname","projecttb-copy-path","","","";
"Copy file pathname","projecttb-copy-filename-full-path","","","";
"-","","","","";
"&Project properties","projecttb-project-properties","","","";
}
submenu "&Add","","Displays Add To Folder menu","ncw" {
"New File...","projecttbAddNewFile","","","";
"Files...","projecttbAddFiles","","","";
"Tree...","projecttbAddTree","","","";
"Wildcard...","projecttbAddWildcard","","","";
"Folder...","projecttbAddFolder","","","";
}
"-","","","","";
"Move &Up","projecttbMoveUp","","","";
"Move &Down","projecttbMoveDown","","","";
"Cut\tCtrl+X","projecttbCut","","","";
"Copy\tCtrl+C","projecttbCopy","","","";
"Paste\tCtrl+V","projecttbPaste","","","";
"Remove\tDel","projecttbRemove","","","";
"-","","","","";
"Folder &Properties...","projecttbFolderProperties","","","";
}