Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic how to change the  text color in a linktable (Read 3487 times)
Mrini
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 34
Joined: Aug 18th, 2009
how to change the  text color in a linktable
Sep 29th, 2009 at 7:15am
Print Post  
Hi ,
   I want to change text color for some kind of text in a cell.

how can I do that. 
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how to change the  text color in a linktable
Reply #1 - Sep 29th, 2009 at 8:20am
Print Post  
Hi,

Call table.getCell(x, y).setTextColor().

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Mrini
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 34
Joined: Aug 18th, 2009
Re: how to change the  text color in a linktable
Reply #2 - Sep 29th, 2009 at 8:41am
Print Post  
It will change the text color for all text.
I want to change it only for some kind of words in a string.
e.g. string is "My name is Mrini"
in this I want to change the color for Mrini only.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how to change the  text color in a linktable
Reply #3 - Sep 29th, 2009 at 9:07am
Print Post  
Try this:

table.setEnableStyledText(true);
table.getCell(0, 0).setText("My name is <color=#FF3333>Mrini</color>");
  
Back to top
 
IP Logged
 
Mrini
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 34
Joined: Aug 18th, 2009
Re: how to change the  text color in a linktable
Reply #4 - Sep 29th, 2009 at 9:51am
Print Post  
Thanks Stoyan,
It's done.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint