super / subscript

General TRichView support forum. Please post your questions here
Post Reply
tomcat
Posts: 1
Joined: Wed Nov 22, 2006 10:47 am

super / subscript

Post 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
Sergey Tkachenko
Site Admin
Posts: 17564
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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
Post Reply