Simple question on displaying text

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
grovecat
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 99
Joined: Thu Aug 04, 2011 10:32 am

Simple question on displaying text

Post by grovecat » Mon Aug 22, 2011 6:55 am

If I create a stack and put a text field on it, then type some text into the Contents field in the Inspector, the text does not show up on the stack. I have looked sample of stacks that do have text on them, and their field settings seem to be the same as mine.

Sure I am missing something really elementary here, but I have not found the answer in tutorials or the user guide.

TIA
grovecat

Klaus
Posts: 14194
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Simple question on displaying text

Post by Klaus » Mon Aug 22, 2011 11:17 am

Hi grovecat,

at first welcome to the forum! :D

I have never problems with that!
Are you sure you didn't enter the text into the TOOLTIP field?
This happened to me several times 8)

Is the field big enough to show its contents?
Sorry, have to guess...


Best

Klaus

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7392
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Simple question on displaying text

Post by jacque » Mon Aug 22, 2011 4:43 pm

Also, just in case you haven't discovered it, you should tab or click outside the inspector's Content field if you want to see the text appear on the card. The text isn't finalized until the Content field closes.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

SparkOut
Posts: 2947
Joined: Sun Sep 23, 2007 4:58 pm

Re: Simple question on displaying text

Post by SparkOut » Tue Aug 23, 2011 12:28 am

Also, just in case - if it is a single line field, make sure that the contents do not have a return character (which would be invisible) at the end. That would push the text up one line, leaving the empty line visible in the field.

(For single line fields, it is worth checking the "tab on return" box in the property inspector, or setting the autoTab property for this reason.)

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: Simple question on displaying text

Post by mwieder » Tue Aug 23, 2011 1:26 am

...and make sure you don't have the field set to display white text on a white background. That one's tripped me up before.

grovecat
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 99
Joined: Thu Aug 04, 2011 10:32 am

Re: Simple question on displaying text

Post by grovecat » Tue Aug 23, 2011 1:36 am

Many thanks to all who responded with good suggestions.

I'm sure I did not fall into any of those traps. However, I just restarted LiveCode, created a new mainstack with a text field and it all works as expected. I can only imagine there was some problem with the stack I was working on before (it was my first).

Cheers

Post Reply