Page 1 of 1

[Solved] textColor not responding

Posted: Sat Oct 27, 2012 2:58 pm
by hylton
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?

Re: textColor not responding

Posted: Sat Oct 27, 2012 3:59 pm
by sturgis
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.

Re: textColor not responding

Posted: Mon Oct 29, 2012 6:35 pm
by hylton
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