If so, please give some pointers, I am trying to replicate the following code:
for example:
mainWindow.onContextMenu = function() {
var items = [];
items[1] = new MenuItem();
items[1].title = "Online Help";
items[1].onSelect = function() {
widgethelp();
};
items[2] = new MenuItem();
items[2].title = "blah blah blah";
items[2].onSelect = function() {
donate();
};
items[3] = new MenuItem();
items[3].title = "blah blah blah";
items[3].onSelect = function() {
amazon();
};
items[4] = new MenuItem();
items[4].title = "blah blah blah";
items[4].onSelect = function() {
rocketdock();
};
items[5] = new MenuItem();
items[5].title = "";
items[5].onSelect = function() {
nullfunction();
};
items[6] = new MenuItem();
items[6].title = "See More blah blah blah;
items[6].onSelect = function() {
otherwidgets();
};
items[7] = new MenuItem();
items[7].title = "Download blah blah blah";
items[7].onSelect = function() {
update();
};
items[11] = new MenuItem();
items[11].title = "Contact blah blah blah";
items[11].onSelect = function() {
contact();
};
mainWindow.contextMenuItems = items;
I would also like to be able to modify the menus dynamically.Statistics: Posted by yereverluvinuncleber — July 29th, 2013, 9:17 am
]]>