Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » swt button with image and text
swt button with image and text [message #463053] Wed, 26 October 2005 06:01 Go to next message
Eclipse User
Originally posted by: reini.schneider.web.de

I want to have a button with an image and a text on it! But it doesn't
work. I call setText(..) and setImage(..). But I never get both. Is it a
bug? Is there a workaround for that?

resc
Re: swt button with image and text [message #463099 is a reply to message #463053] Wed, 26 October 2005 08:18 Go to previous messageGo to next message
Stefan Langer is currently offline Stefan Langer
Messages: 236
Registered: July 2009
Senior Member
Button only supports one of the two. You might want to look how eclipse
does it in the Perspectivebar.

Regards
Stefan

Reinhold Schneider wrote:
> I want to have a button with an image and a text on it! But it doesn't
> work. I call setText(..) and setImage(..). But I never get both. Is it
> a bug? Is there a workaround for that?
>
> resc
>
Re: swt button with image and text [message #463107 is a reply to message #463099] Wed, 26 October 2005 12:51 Go to previous messageGo to next message
Eclipse User
Originally posted by: friederich.kupzog.de

Hi, my workaround is ToolItem. It can display both.
Regards,
Friederich

Stefan Langer wrote:
> Button only supports one of the two. You might want to look how eclipse
> does it in the Perspectivebar.
>
> Regards
> Stefan
>
> Reinhold Schneider wrote:
>
>> I want to have a button with an image and a text on it! But it doesn't
>> work. I call setText(..) and setImage(..). But I never get both. Is
>> it a bug? Is there a workaround for that?
>>
>> resc
>>


--
Friederich Kupzog
Elektronik & Software
Neusser Str. 5-7
50670 Köln
Tel 0241 160696-1
Fax 0221 726670
www.kupzog.de/fkmk
Re: swt button with image and text [message #463110 is a reply to message #463107] Wed, 26 October 2005 13:28 Go to previous messageGo to next message
Daniel Spiewak is currently offline Daniel Spiewak
Messages: 263
Registered: July 2009
Senior Member
There has been a bug open at eclipse.org on this topic for quite some time. I'm hoping that this is fixed in the final release of 3.2.
Re: swt button with image and text [message #463400 is a reply to message #463110] Fri, 04 November 2005 14:47 Go to previous message
Steve Northover is currently offline Steve Northover
Messages: 1636
Registered: July 2009
Senior Member
It's fixed.

"Daniel Spiewak" <djspiewak@gmail.com> wrote in message
news:33175395.1130347718112.JavaMail.root@cp1.javalobby.org...
> There has been a bug open at eclipse.org on this topic for quite some
time. I'm hoping that this is fixed in the final release of 3.2.
Previous Topic:Root TreeITem without Expand-Button and Lines
Next Topic:How to enable views to handle timer events
Goto Forum:
  


Current Time: Sat Apr 19 21:49:40 EDT 2014

Powered by FUDForum. Page generated in 0.01776 seconds