Changing the color of the content in a text field.

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
Posts: 13
Joined: Thu Jun 15, 2006 3:04 pm

Changing the color of the content in a text field.

Post by bmont » Wed Jun 28, 2006 8:42 pm

I am trying to change some of the text in the content property of a textfield via the inspector. I select the text and then do the following:

I select the Text menu item and then the Color submenu item.

However, I only see six basic colors plus the pen color.

Does anyone know how to change the color of the text to any other color without reverting to Transcript code?

BTW, What is the pen color?

Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Location: Ostenfeld germany

Post by malte » Wed Jun 28, 2006 10:07 pm

The pencolor can be set using the tools palette. Make sure it is expanded. (click on the small triangle at the bottom of the tools palette) You should see the paint tools now. Click on the small pen icon (tSecond from left, bottom most) and select a color. You might need to double click to bring up the color chooser indead of a predefined palette. Now if you choose pen color from the text menu it will use the color you have chosen.

Hope that helps,


Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5146
Joined: Thu Feb 23, 2006 9:24 pm

Post by Mark » Fri Jun 30, 2006 9:51 am


If you know how RGB values work, you can use the message box:

set the textColor of fld 1 to "100,0,100"
set the textColor of fld 1 to purple
set the textColor of fld 1 to empty


The biggest LiveCode group on Facebook:
The book "Programming LiveCode for the Real Beginner"! Get it here!

Post Reply

Return to “Talking LiveCode”