Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » CSS styling - Border (e4 contacts demo)
CSS styling - Border (e4 contacts demo) [message #481470] Fri, 21 August 2009 07:59 Go to next message
Tom Cx is currently offline Tom CxFriend
Messages: 13
Registered: July 2009
Junior Member
Hi,

I was playing a little bit with the e4 contacts demo and the stylesheet.
I wanted to try to add a border around the text fields in the
detail(composite) view.

My purpose was to reach to same presentation as when using SWT.BORDER in
the defintion/creation of a new Text (field)

So I added the following to the Stylesheet in the text section

Text {
font: Verdana 8px;
border-width; 1px;
border-color: #f08d00;

}

This seems to do something but the border is much thicker and doesn't
fill the whole text box.

So I'm wondering which CSS code is should use to achieve the same as
with SWT.BORDER (eventually with another color).

Tnx in advance for the help

Kind regards,
Tom
Re: CSS styling - Border (e4 contacts demo) [message #481655 is a reply to message #481470] Sat, 22 August 2009 11:16 Go to previous message
Remy Suen is currently offline Remy SuenFriend
Messages: 462
Registered: July 2009
Senior Member
On Fri, 21 Aug 2009 09:59:11 +0200, tcdmail wrote:
> So I'm wondering which CSS code is should use to achieve the same as
> with SWT.BORDER (eventually with another color).

SWT.BORDER is a native hint to the windowing system to attempt to draw a
native border around the control. I believe it will be extremely
difficult to achieve the same effect just in general (while forgetting
everything about the CSS engine completely) as it is a native border.

Regards,
Remy
Re: CSS styling - Border (e4 contacts demo) [message #562639 is a reply to message #481470] Sat, 22 August 2009 11:16 Go to previous message
Remy Suen is currently offline Remy SuenFriend
Messages: 462
Registered: July 2009
Senior Member
On Fri, 21 Aug 2009 09:59:11 +0200, tcdmail wrote:
> So I'm wondering which CSS code is should use to achieve the same as
> with SWT.BORDER (eventually with another color).

SWT.BORDER is a native hint to the windowing system to attempt to draw a
native border around the control. I believe it will be extremely
difficult to achieve the same effect just in general (while forgetting
everything about the CSS engine completely) as it is a native border.

Regards,
Remy
Previous Topic:Eclipse E4 - Example for css styling
Next Topic:Is it possible to leverage CSS styling in a legacy RCP application?
Goto Forum:
  


Current Time: Thu Apr 25 20:19:33 GMT 2024

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

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

Back to the top