Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Text Widget color
Text Widget color [message #481459] Fri, 21 August 2009 06:55 Go to next message
Kathiravan  is currently offline Kathiravan Friend
Messages: 33
Registered: July 2009
Member
Hi,
I would like to give a color to each letter in the Text widget. Is there
any straight forward way of doing this.

In the word ATGC, i want each letter in different color.

Do i need to do a custom widget or is it possible to do it with CSS
alone.

Thanks in advance,
Kathir.
Re: Text Widget color [message #481471 is a reply to message #481459] Fri, 21 August 2009 07:57 Go to previous messageGo to next message
Dmitry Pryadkin is currently offline Dmitry PryadkinFriend
Messages: 146
Registered: July 2009
Senior Member
Hi,

No it's not possible with Text.

Kathiravan wrote:
> Hi,
> I would like to give a color to each letter in the Text widget. Is there
> any straight forward way of doing this.
> In the word ATGC, i want each letter in different color.
>
> Do i need to do a custom widget or is it possible to do it with CSS alone.
> Thanks in advance,
> Kathir.
>
Re: Text Widget color [message #481633 is a reply to message #481459] Sat, 22 August 2009 01:56 Go to previous messageGo to next message
Elias Volanakis is currently offline Elias VolanakisFriend
Messages: 43
Registered: July 2009
Member
If you only need a read-only widget (edit not supported), you can use
the StyledText widget from the RAP sandbox:

/cvsroot/rt/org.eclipse.rap/sandbox/org.eclipse.rwt.widgets. styledtext
/cvsroot/rt/org.eclipse.rap/sandbox/org.eclipse.rwt.widgets. styledtext.demo

HTH,
Elias.

Kathiravan wrote:
> Hi,
> I would like to give a color to each letter in the Text widget. Is there
> any straight forward way of doing this.
> In the word ATGC, i want each letter in different color.
>
> Do i need to do a custom widget or is it possible to do it with CSS alone.
> Thanks in advance,
> Kathir.
>
Re: Text Widget color [message #481673 is a reply to message #481633] Sun, 23 August 2009 06:31 Go to previous messageGo to next message
Kathiravan  is currently offline Kathiravan Friend
Messages: 33
Registered: July 2009
Member
Hi,
Thanks ! The styled text worked for me as a read only widget. How hard is
it to make the styled text widget editable.
Is there any workaround for that. I will also help if there is anything i
can do on this.

BR,
Kathir.
Re: Text Widget color [message #481762 is a reply to message #481673] Mon, 24 August 2009 08:49 Go to previous message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 338
Registered: July 2009
Senior Member
Hi Kathiravan,

making the StyledText editable is a tough one I think. Currently there
is no workaround for this limitation. But feel free to contribute to the
existing implementation.

Greets
Ben

Kathiravan wrote:
> Hi,
> Thanks ! The styled text worked for me as a read only widget. How hard
> is it to make the styled text widget editable. Is there any workaround
> for that. I will also help if there is anything i can do on this.
>
> BR,
> Kathir.
>
Previous Topic:question on theming custom widgets
Next Topic:tableViewer#setInput takes AGES to finish in my Application [SOLVED]
Goto Forum:
  


Current Time: Sat Apr 27 04:49:24 GMT 2024

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

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

Back to the top