Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » browser widget - remove border
browser widget - remove border [message #444662] Tue, 19 October 2004 19:24 Go to next message
Eclipse UserFriend
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 02:38 Go to previous messageGo to next message
Eclipse UserFriend
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 03: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 10:18 Go to previous messageGo to next message
Eclipse UserFriend
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 10:56 Go to previous message
Eclipse UserFriend
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: Mon Jul 14 08:17:59 EDT 2025

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

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

Back to the top