Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Flat combo in SWT forms
Flat combo in SWT forms [message #457880] Wed, 06 July 2005 11:08 Go to next message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 423
Registered: July 2009
Senior Member
In the PDE there is a flat combo box. I try to get that flat box too but i
cannot get rid of the original widgets 3d border.

From the forms manual, this should work (since there is no
Toolkit.createCombo()).

combo = new Combo(composite, SWT.NONE);
combo.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
toolkit.paintBordersFor(composite);

If i do this, i get a flat border around a 3d border.

Any hints?

Regards,

Wim
Re: Flat combo in SWT forms [message #457881 is a reply to message #457880] Wed, 06 July 2005 12:27 Go to previous messageGo to next message
Stefan Langer is currently offline Stefan LangerFriend
Messages: 236
Registered: July 2009
Senior Member
Wim Jongman wrote:
> In the PDE there is a flat combo box. I try to get that flat box too but i
> cannot get rid of the original widgets 3d border.
>
> From the forms manual, this should work (since there is no
> Toolkit.createCombo()).
>
> combo = new Combo(composite, SWT.NONE);
> combo.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
> toolkit.paintBordersFor(composite);
>
> If i do this, i get a flat border around a 3d border.
>
> Any hints?
>
> Regards,
>
> Wim
>
>
Use CCombo

Regards
Stefan
Re: Flat combo in SWT forms [message #460612 is a reply to message #457880] Thu, 01 September 2005 13:33 Go to previous message
Sean Kirby is currently offline Sean KirbyFriend
Messages: 14
Registered: July 2009
Junior Member
Don't forget about the SWT.FLAT style too.

sk

Wim Jongman wrote:
> In the PDE there is a flat combo box. I try to get that flat box too but i
> cannot get rid of the original widgets 3d border.
>
> From the forms manual, this should work (since there is no
> Toolkit.createCombo()).
>
> combo = new Combo(composite, SWT.NONE);
> combo.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
> toolkit.paintBordersFor(composite);
>
> If i do this, i get a flat border around a 3d border.
>
> Any hints?
>
> Regards,
>
> Wim
>
>
Previous Topic:Scrolled Composite Doesnt Show all Children
Next Topic:"redraw()" cannot update the display
Goto Forum:
  


Current Time: Fri Apr 26 10:34:45 GMT 2024

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

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

Back to the top