[Solved] textColor not responding

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
hylton
Posts: 53
Joined: Thu Oct 04, 2012 12:49 pm

[Solved] textColor not responding

Post by hylton » Sat Oct 27, 2012 2:58 pm

Hello,

I am trying to change the colour of the text in a Scrolling List Field to white.

It must be something really simple I am missing, but whatever I try, LiveCode ignores.

I highlight the field, click on Colors & Patterns, click the button to set the Text colour and my choice is ignored. No matter which colour I choose, the text remains black.

I open a message box and type in

Code: Select all

set the textColor of field "Task List" to "white"
That doesn't work.

I can set the textSize, without any problem, using the message box.

Things I have tried to fix the problem:

1. Lock and unlock the text.
2. Delete and recreate the list.
3. Use colours by name or by rgb.
4. Opening a totally different Stack. All stacks have the same problem.

Where am I going wrong with something this simple?
Last edited by hylton on Mon Apr 06, 2015 9:17 am, edited 2 times in total.

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: textColor not responding

Post by sturgis » Sat Oct 27, 2012 3:59 pm

Try this in the message box

set the textcolor of line 1 to -1 of field "task list" to empty

Then try

set the textcolor of field "task list" to white

If you have managed to set the textcolor of the field with a chunk expression it overrides the field textcolor.

hylton
Posts: 53
Joined: Thu Oct 04, 2012 12:49 pm

Re: textColor not responding

Post by hylton » Mon Oct 29, 2012 6:35 pm

Hi Sturgis

Thank you very much!

I had set the colour to black in a handler, which was overriding my choice in Colors & Patterns.

As soon as I commented out that code, textColor worked.

Kind regards
Hylton

Post Reply