Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Browrser in Composite/Group
Browrser in Composite/Group [message #459227] Wed, 03 August 2005 19:40 Go to next message
Eclipse UserFriend
Originally posted by: klaus.teller.gmx.net

Hello,

Please, help! I would like to pose a browser inside a composite such
that there is no visible border that separate one to the other. Is that
possible? Alternatively a very light border like that of groups would
also be acceptable. I tried the SWT.SMOOTH flag but without the expected
result.

thanks,

Klaus.
Re: Browrser in Composite/Group [message #459238 is a reply to message #459227] Thu, 04 August 2005 01:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sunil_kamath.nohotspammail.com

"klaus teller" <klaus.teller@gmx.net> wrote in message
news:dcr6j4$df0$1@news.eclipse.org...
> Hello,
>
> Please, help! I would like to pose a browser inside a composite such that
> there is no visible border that separate one to the other. Is that
> possible? Alternatively a very light border like that of groups would also
> be acceptable. I tried the SWT.SMOOTH flag but without the expected
> result.
>
What kind of layout are you using for the composite?
If you are using GridLayout, set marginWidth and marginHeight to 0.
---
Sunil
Re: Browrser in Composite/Group [message #459241 is a reply to message #459238] Thu, 04 August 2005 10:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: klaus.teller.gmx.net

> What kind of layout are you using for the composite?
> If you are using GridLayout, set marginWidth and marginHeight to 0.

Thanks Sunil. It seems that I did not clearly made my point. The issue
is not really that of the distance between the border of the browser and
that of its container, but the transition from one component to the
other. I want this transition to be finer and smoother. In other terms,
I want the border of the browser to be nearly invisible. The browser
could have a dimension of 50 x 50 within a conatiner of size 150 x 150.
Setting the margin to 0, therefore do not really solve my problem.

Klaus.
Re: Browrser in Composite/Group [message #459251 is a reply to message #459241] Thu, 04 August 2005 14:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sunil_kamath.nohotspammail.com

"klaus teller" <klaus.teller@gmx.net> wrote in message
news:dcsr5p$ush$1@news.eclipse.org...
>
>> What kind of layout are you using for the composite?
>> If you are using GridLayout, set marginWidth and marginHeight to 0.
>
> Thanks Sunil. It seems that I did not clearly made my point. The issue is
> not really that of the distance between the border of the browser and that
> of its container, but the transition from one component to the other. I
> want this transition to be finer and smoother. In other terms, I want the
> border of the browser to be nearly invisible. The browser could have a
> dimension of 50 x 50 within a conatiner of size 150 x 150. Setting the
> margin to 0, therefore do not really solve my problem.
>
> Klaus.

Browser b = new Browser(parent,SWT.NONE) should theoretically prevent any
border from being drawn.
But it doesn't have any effect.
---
Sunil
Re: Browrser in Composite/Group [message #459407 is a reply to message #459241] Mon, 08 August 2005 20:25 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi Klaus,

Which platform are you running on? I tried the following snippet on win32,
gtk and mac, and the Browser did not show a border for me on any of them.
Unless I'm mis-understanding your question (?).

public static void main(String[] args) {
Display display = new Display();
Shell shell = new Shell(display);
shell.setBounds(10,10,350,350);
Composite composite = new Composite(shell, SWT.BORDER);
composite.setBounds(10,10,300,300);
composite.setBackground(display.getSystemColor(SWT.COLOR_WHI TE));
Browser browser = new Browser(composite, SWT.NONE);
browser.setBounds(100,100,100,100);
browser.setUrl("http://www.google.ca");
shell.open();
while (!shell.isDisposed()){
if (!display.readAndDispatch()) display.sleep();
}
display.dispose();
}

Grant

"klaus teller" <klaus.teller@gmx.net> wrote in message
news:dcsr5p$ush$1@news.eclipse.org...
>
> > What kind of layout are you using for the composite?
> > If you are using GridLayout, set marginWidth and marginHeight to 0.
>
> Thanks Sunil. It seems that I did not clearly made my point. The issue
> is not really that of the distance between the border of the browser and
> that of its container, but the transition from one component to the
> other. I want this transition to be finer and smoother. In other terms,
> I want the border of the browser to be nearly invisible. The browser
> could have a dimension of 50 x 50 within a conatiner of size 150 x 150.
> Setting the margin to 0, therefore do not really solve my problem.
>
> Klaus.
Previous Topic:MouseTrackListener on Table does not react on header hover
Next Topic:setCellEditors
Goto Forum:
  


Current Time: Fri Mar 29 08:56:59 GMT 2024

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

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

Back to the top