Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Combo in a form has not flat look
Combo in a form has not flat look [message #464349] Mon, 21 November 2005 21:18 Go to next message
Eclipse UserFriend
Originally posted by: hombre67.gmx.at

Hi,

I am using a Combo in a form. Since th Combo has no factory method in
the form toolkit, I call the adapt method from the form toolkit. But the
Combo still has no flat look.
This is the code:
Combo combo = new Combo(parent, SWT.DROP_DOWN);
combo.add("text");
toolkit.adapt(combo);
toolkit.paintBordersFor(parent);

Does anybody know why it does not work ?

Thanks,
Hombre
Re: Combo in a form has not flat look [message #464365 is a reply to message #464349] Tue, 22 November 2005 07:22 Go to previous messageGo to next message
Reinhard Moser is currently offline Reinhard MoserFriend
Messages: 43
Registered: July 2009
Member
Hi Hombre,

you have to use CCombo with SWT.FLAT style.

Reinhard

hombre schrieb:
> Hi,
>
> I am using a Combo in a form. Since th Combo has no factory method in
> the form toolkit, I call the adapt method from the form toolkit. But the
> Combo still has no flat look.
> This is the code:
> Combo combo = new Combo(parent, SWT.DROP_DOWN);
> combo.add("text");
> toolkit.adapt(combo);
> toolkit.paintBordersFor(parent);
>
> Does anybody know why it does not work ?
>
> Thanks,
> Hombre
Re: Combo in a form has not flat look [message #464396 is a reply to message #464365] Tue, 22 November 2005 19:29 Go to previous message
Eclipse UserFriend
Originally posted by: hombre67.gmx.at

Thanks it works
Hombre
Previous Topic:SWT Tree right click menu
Next Topic:TreeViewer and TabFolder
Goto Forum:
  


Current Time: Fri Apr 26 08:23:13 GMT 2024

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

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

Back to the top