Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumsbrowser widget - remove border
https://www.eclipse.org/forums/index.php/mv/msg/141069/444662/#msg_444662
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.]]>Chris Gross2004-10-19T23:24:20-00:00Re: browser widget - remove border
https://www.eclipse.org/forums/index.php/mv/msg/141069/444663/#msg_444663
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.]]>Benjamin Pasero2004-10-20T06:38:32-00:00Re: browser widget - remove border
https://www.eclipse.org/forums/index.php/mv/msg/141069/444666/#msg_444666
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]]>2004-10-20T07:53:38-00:00Re: browser widget - remove border
https://www.eclipse.org/forums/index.php/mv/msg/141069/444685/#msg_444685
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]]>Christophe Cornu2004-10-20T14:18:56-00:00Re: browser widget - remove border
https://www.eclipse.org/forums/index.php/mv/msg/141069/444690/#msg_444690
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
>]]>Chris Gross2004-10-20T14:56:24-00:00