I was experimenting with e4 1.0. I ran Lars Vogel's examples to set up a first app, then to add some CSS styling to it. That all worked fine. I was trying to figure out, however, how to style the menu or menu items, which his examples don't cover. I tried adding a CSS selector 'Menu', and another one 'MenuItem', and neither of those had any effect. Any ideas whether I'm just doing something that's not possible, or how to actually style a menu?
On Tue, 27 Oct 2009 15:35:33 -0400, Dave Combs wrote:
> Any ideas whether I'm just doing something that's not possible, or how
> to actually style a menu?
SWT does not expose API for changing a menu or menu item's colour so we
cannot do this with CSS. It's also not possible to use PaintListeners or
GCs so we're essentially stuck. I guess it might technically be possible
for a menu bar (of a shell) with a PaintListener on the shell maybe but
that's not been attempted yet I don't think.