Re: Subscript and Superscript

2017-09-10 Thread Roger Guay via use-livecode
Thanks for your help, Terry and Brian. Cheers, Roger > On Sep 10, 2017, at 8:07 PM, Roger Guay via use-livecode > wrote: > > Since one can set the subscript or superscript of a character from the Text > menu, presumably there are commands to do so as well? I can’t find such a > thing! Help p

Re: Subscript and Superscript

2017-09-10 Thread Brian Milby via use-livecode
Or, the way the engine does it is to use "the textshift"... set the textShift of char 2 of field "textField" to -4 --superscript set the textShift of char 5 of field "textField" to 4 --subscript The IDE uses a handler called "ideStyleText" located in stack "revidelibrary" if you want to take a lo

Re: Subscript and Superscript

2017-09-10 Thread Terry Judd via use-livecode
Hi Roger – you can set subscripts and superscripts by settings the htmlText. So, something like: set the htmlText of word 5 of fld “x” to “m2” Terry... On 11/09/2017 1:07 pm, "use-livecode on behalf of Roger Guay via use-livecode" wrote: Since one can set the subscript or superscript of