Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to output some different color text?
How to output some different color text? [message #445683] Tue, 09 November 2004 03:24 Go to next message
Eclipse UserFriend
Originally posted by: omega.wu.gmail.com

Hi, all

I want to display text with diffrent color, just like console view in
eclipse.

I use Text widget but it can only set one color to all text.
Re: How to output some different color text? [message #445684 is a reply to message #445683] Tue, 09 November 2004 08:20 Go to previous messageGo to next message
Henrik Skovgaard is currently offline Henrik SkovgaardFriend
Messages: 84
Registered: July 2009
Member
> I want to display text with diffrent color, just like console view in
> eclipse.
>
> I use Text widget but it can only set one color to all text.

I wild guess would be to use StyledText instead. But I'm not 100% sure.

/Henrik
Re: How to output some different color text? [message #445688 is a reply to message #445683] Tue, 09 November 2004 13:32 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
Use StyledText.

See:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet163.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup

"omega.wu" <omega.wu@gmail.com> wrote in message
news:cmpd99$9c4$1@eclipse.org...
> Hi, all
>
> I want to display text with diffrent color, just like console view in
> eclipse.
>
> I use Text widget but it can only set one color to all text.
>
Previous Topic:Content displayed after Resizing of Window
Next Topic:SWT table not rendering correctly
Goto Forum:
  


Current Time: Thu Oct 22 16:04:21 GMT 2020

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

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

Back to the top