Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » styling the menu and menu items?(css styling)
styling the menu and menu items? [message #493748] Tue, 27 October 2009 19:35 Go to next message
Dave Combs is currently offline Dave CombsFriend
Messages: 21
Registered: July 2009
Junior Member
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?

Thanks!
Dave
Re: styling the menu and menu items? [message #493870 is a reply to message #493748] Wed, 28 October 2009 10:34 Go to previous message
Remy Suen is currently offline Remy SuenFriend
Messages: 462
Registered: July 2009
Senior Member
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.

Regards,
Remy
Previous Topic:E4 demo contact and wazaabi live model
Next Topic:any references to command handler syntax?
Goto Forum:
  


Current Time: Fri Apr 19 15:39:58 GMT 2024

Powered by FUDForum. Page generated in 0.01851 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top