Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » CSS Styling for disabled widgets
CSS Styling for disabled widgets [message #988577] Fri, 30 November 2012 15:08 Go to next message
Ulrich Obst is currently offline Ulrich ObstFriend
Messages: 12
Registered: August 2012
Junior Member
Hi,

I read at several places that I can define a CSS styling for disabled widgets using pseudo classes such as

Text:disabled {
    background-color: #FFFFFF;
}

But this has no effects. (CSS styles for normal widgets works as expected).
Does anybody know the exact syntax for setting properties for disabled widgets?

Thanks
Ulli
Re: CSS Styling for disabled widgets [message #988847 is a reply to message #988577] Mon, 03 December 2012 12:59 Go to previous messageGo to next message
Nagesh Bansal is currently offline Nagesh BansalFriend
Messages: 21
Registered: September 2012
Junior Member
CTabItem{
color: #00ff00;
}

CTabItem:selected{
color: #00ffff;
}

This worked for me....
Re: CSS Styling for disabled widgets [message #988853 is a reply to message #988577] Mon, 03 December 2012 13:14 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Could it be that a disabled text-field does not allow you change its
background. You can prove that by testing this in plain SWT, does the
background color change when you call setBackground on a disabled
Text-Control?

Tom

Am 30.11.12 16:08, schrieb Ulrich Obst:
> Hi,
>
> I read at several places that I can define a CSS styling for disabled
> widgets using pseudo classes such as
>
>
> Text:disabled {
> background-color: #FFFFFF;
> }
>
> But this has no effects. (CSS styles for normal widgets works as expected).
> Does anybody know the exact syntax for setting properties for disabled
> widgets?
> Thanks
> Ulli
Re: CSS Styling for disabled widgets [message #989009 is a reply to message #988853] Tue, 04 December 2012 10:05 Go to previous message
Ulrich Obst is currently offline Ulrich ObstFriend
Messages: 12
Registered: August 2012
Junior Member
Yes you're right. Setting the background of a disabled Text Widget has no effect either. Ok, that's a SWT issue not a CSS Bug.

Thank you for your help
Ulli
Previous Topic:Contacts Demo not working properly
Next Topic:Disable MMenu in the Main Menu
Goto Forum:
  


Current Time: Tue Apr 16 15:49:26 GMT 2024

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

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

Back to the top