Super and subscripts in label fields

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
anmldr
Posts: 459
Joined: Tue Sep 11, 2012 11:13 pm

Super and subscripts in label fields

Post by anmldr » Fri Jan 03, 2014 6:37 pm

Is there a way to have super and subscripts for the contents of a label field?

Linda

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10333
Joined: Wed May 06, 2009 2:28 pm

Re: Super and subscripts in label fields

Post by dunbarx » Fri Jan 03, 2014 6:41 pm

Hi.

Sure. Use the "textShift" property:

on mouseUp
set the textShift of char 4 to 5 of fld "yourField" to 5
set the textSize of char 4 to 5 of fld "yourField" to 9
end mouseUp

Craig Newman

Post Reply