Page 1 of 1

Exponent in text field ?

Posted: Fri Nov 08, 2013 7:16 am
by sirobchGA0cda
Hello,
it's possible to write a exponent in a field or a label ?
I have testing with copy and paste from word or page, but it's not possible to change the size in the textformating.
Thank you for your answer.
Best regards
Boris

Re: Exponent in text field ?

Posted: Fri Nov 08, 2013 3:21 pm
by dunbarx
Hi.

Do you mean to:

put "4^2" into fld "yourField"? (the "^" char, ASCII 94)

And then you can "answer the value of fld yourField"

Craig Newman

Re: Exponent in text field ?

Posted: Fri Nov 08, 2013 5:02 pm
by FourthWorld
As with LaTex, Postscript, and other text formatting languages, you can shift the baseline of text in LiveCode as well - see the textShift chunk property in the Dictionary.

Re: Exponent in text field ?

Posted: Fri Nov 08, 2013 8:43 pm
by sirobchGA0cda
Thank you all!
I can make the changes with "^" and edit the field with textShift. :D
Boris

Re: Exponent in text field ?

Posted: Fri Nov 08, 2013 9:38 pm
by dunbarx
Oh. That is what you meant by "exponent". A superscript.

Glad that both methods will work for you.

Craig