Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » browser widget - remove border
browser widget - remove border [message #444662] Tue, 19 October 2004 23:24 Go to next message
Chris Gross is currently offline Chris GrossFriend
Messages: 471
Registered: July 2009
Senior Member
Is there any way to remove the border from the browser widget (on Windows).
I'm using the browser widget in a form editor and I'd rather let the form
toolkit draw the border. I'm guessing that the border is actually painted
by the IE control and not by SWT and that may mean no.

Any help appreciated,
-Chris

p.s. I am passing the SWT.NONE style during creation.
Re: browser widget - remove border [message #444663 is a reply to message #444662] Wed, 20 October 2004 06:38 Go to previous messageGo to next message
Benjamin Pasero is currently offline Benjamin PaseroFriend
Messages: 337
Registered: July 2009
Senior Member
Hi Chris,
I once opened a bug report against it and it was fixed. See:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=71146

Make sure to use a SWT version that includes this bugfix and
use SWT.NONE in the Browser's constructor.

Ben

> Is there any way to remove the border from the browser widget (on Windows).
> I'm using the browser widget in a form editor and I'd rather let the form
> toolkit draw the border. I'm guessing that the border is actually painted
> by the IE control and not by SWT and that may mean no.

> Any help appreciated,
> -Chris

> p.s. I am passing the SWT.NONE style during creation.
Re: browser widget - remove border [message #444666 is a reply to message #444662] Wed, 20 October 2004 07:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lyashchuk.mail333.com

Hello, Chris!
You wrote on Tue, 19 Oct 2004 19:24:20 -0400:

C> Is there any way to remove the border from the browser widget (on
Windows).
C> I'm using the browser widget in a form editor and I'd rather let the
form
C> toolkit draw the border. I'm guessing that the border is actually
painted
C> by the IE control and not by SWT and that may mean no.
C> Any help appreciated,
C> -Chris

final Composite composite = new Composite(parent, SWT.NONE);

{

FillLayout layout = new FillLayout();

layout.marginHeight = -2;

layout.marginWidth = -2;

composite.setLayout(layout);

}

Browser browser = new Browser(composite, SWT.FLAT);


With best regards, Lyashchuk Anatoliy. E-mail: lyashchuk@mail333.com
Re: browser widget - remove border [message #444685 is a reply to message #444663] Wed, 20 October 2004 14:18 Go to previous messageGo to next message
Christophe Cornu is currently offline Christophe CornuFriend
Messages: 304
Registered: July 2009
Senior Member
Chris,

Ben's instructions are right. I'll just add that you'll get the desired
effect with SWT.NONE starting with SWT v>= 3105 (tuesday Sept 14th 2004).

Chris
Re: browser widget - remove border [message #444690 is a reply to message #444685] Wed, 20 October 2004 14:56 Go to previous message
Chris Gross is currently offline Chris GrossFriend
Messages: 471
Registered: July 2009
Senior Member
Awesome!

Thanks Ben and Chris

-Chris

"Christophe Cornu" <christophe_cornu@ca.ibm.com> wrote in message
news:cl5rqb$1fh$1@eclipse.org...
> Chris,
>
> Ben's instructions are right. I'll just add that you'll get the desired
> effect with SWT.NONE starting with SWT v>= 3105 (tuesday Sept 14th 2004).
>
> Chris
>
Previous Topic:Display, Graphics and GTK
Next Topic:Exception in Thread Main error when exiting
Goto Forum:
  


Current Time: Fri Oct 23 09:04:18 GMT 2020

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

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

Back to the top