Page 1 of 1

super / subscript

Posted: Wed Nov 22, 2006 10:57 am
by tomcat
Hello I'am very interested in TrichView Components and plan to buy them
But I need to toggle Super and Subsricpt in my Editor.
Is it possible ?
Is there an example?
It' s urgent!

Best regards

Tom

Posted: Thu Nov 23, 2006 2:03 pm
by Sergey Tkachenko
There is a VShift property of text style allowing to move text up or down.
For applying super/subscript, you can decrease font size and assign VShift

This is a modified demo (the original is in Demos\Delphi\Editors\Editor 2\) supporting super/subscripts:
http://www.trichview.com/support/files/reditss.zip