I try to find out on what style sheet the plugins.window.createPopupMenu() text is based? I tried with combobox and the other styles, but couldn't find which one can be used to style the plugins.window.createPopupMenu()
Regards,
Harjo wrote:AFAIK for smartclient you can't style the popupmenu, that's Java LAF depended
var popupMenu = plugins.window.createPopupMenu();
popupMenu.addMenuItem('<html><span style = "font-size: 12; color: #0f0f0f; font-weight: regular">' + i18n.getI18NMessage(menuItems[i].name) + '</span></html>', menuItems[i].method, null, null, itemEnabled, null);
//on solution open
var uiDefaults = Packages.javax.swing.UIManager.getDefaults();
var font = new Packages.javax.swing.plaf.FontUIResource("Tahoma",0,11);
uiDefaults.put("PopupMenu.font", font);
//etc, search google for all the java ui defaults PopupMenu.*
Harjo wrote:As I said, that is L&F dependent in Smart client.
of course you can fiddle around yourself with html in it, but that is only for the label's (strings) inside opupmenu,
You can't control the main-border, main background etc.... with that...
Users browsing this forum: No registered users and 2 guests