Page 1 of 1

Simple question on displaying text

Posted: Mon Aug 22, 2011 6:55 am
by grovecat
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

Re: Simple question on displaying text

Posted: Mon Aug 22, 2011 11:17 am
by Klaus
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

Re: Simple question on displaying text

Posted: Mon Aug 22, 2011 4:43 pm
by jacque
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.

Re: Simple question on displaying text

Posted: Tue Aug 23, 2011 12:28 am
by SparkOut
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.)

Re: Simple question on displaying text

Posted: Tue Aug 23, 2011 1:26 am
by mwieder
...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.

Re: Simple question on displaying text

Posted: Tue Aug 23, 2011 1:36 am
by grovecat
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