Hi,
How can I add a menu list programatically? I see that we can do _menu_insert and add menu items one by one, but that seems to be a tedious approach..
In the document, a sample menu was given as follows:
_menu mymenu {
submenu "&File", "Help file menu", "Displays File drop-down menu", "ncw" {
"&New", "new", "ncw" , "help new", "Creates a new file to edit";
"&Open\tCtrl+O", "gui_open", "help gui_open", "Open a file";
}
submenu "&Edit", "Help edit menu", "Displays Edit drop-down menu","ncw" {
"Cu&t", "cut", "sel|nrdonly", "help cut", "Deletes the selection and copies it to the clipboard";
}
}
Is there an API that I can use to add it to _mdi_menu programatically with just one call?
thanks in advance.
Murali