We are currently using Servoy 6 and our modules are displayed through different multiple windows. Does Servoy have a menu bean or any type of element which we can use to display our menu items? The menu items should be on top of all opened windows.
Check out the Window plugin that comes with Servoy. This will handle popupmenu’s and such but also menubar menus, even per window (actually you do it PER window).
We wanted a menu for all windows, and not per window. Something like the “Start” menu of an Operating System, where the Start menu is always on top of the dialogboxes. Is this currently possible in Servoy?
You can add menu items to the main menu bar which will remain visible above all forms. However, under certain conditions like when using popup-forms the menu will be disabled. To add a menu item to the main menu:
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
menu.addMenuItem("item", myMethod);
Note that the method that handles the menu click should be specified without the parentheses.