Thanks for your reply Gary.
I tried the 'popupmenu' plugin and I can get a simple popmenu to appear.
However, a couple of things don't work.
1) the createCheckboxMenuItem doesn't paint me a checkbox (no biggie cause I really don't need one at the moment)
2) the createRadioButtonMenuItem doesn't paint me a radio button (no biggie cause I really don't need one at the moment)
3) the 'enabled' property doesn't get rendered (i.e. if I set a menu item's ".setEnabled(false)" I still see the item normally in web client - it does work correctly in Smart Client... but I'm not interested in Smart Client.
Here's a snippet of code (its really ugly but this is just a test mule at this point). The popupMenuSetup() method is involved for the 'onAction' event of a label I've placed at the top of one of my forms.
- Code: Select all
function popupMenuSetup()
{
var menu = new Array(
plugins.popupmenu.createMenuItem('A', junk1),
plugins.popupmenu.createMenuItem('-'),
plugins.popupmenu.createCheckboxMenuItem('B',junk2),
plugins.popupmenu.createRadioButtonMenuItem('C',junk3),
plugins.popupmenu.createMenuItem('<html><b>Hello</b></html>',junk4)
);
menu[3].setEnabled(false);
var elem = elements[application.getMethodTriggerElementName()];
if (elem != null)
{
plugins.popupmenu.showPopupMenu(elem, menu);
}
}
function junk1()
{
var lv_junk1 = 0;
}
function junk2()
{
var lv_junk2 = 0;
}
...
Any thoughts ??
Thanks in advance