trichview.support
Re: Subscript and Superscript |
Author |
Message |
Sergey Tkachenko |
Posted: 07/04/2004 13:30:12 Sorry, I missed this question There are no special "subscript" and "superscript" options for text formatting in RichView (planned for future) These properties can be simulated by VShift property of text style. This is a vertical offset of text in percents, it is counted relative the baseline of text. Normal text items have VShift=0. Use positive values for superscripts, negative values for subscripts. For making buttons pressed/unpressed, check VShift (positive? negative?) of the current text style. When pressing buttons, use ApplyStyleConversion to assign VShift (for example, 45 for superscripts, -25 for subscripts). Besides, you can reduce font size (by half) > I am having some problems to find out how to extend the Demo Example 2 so > that it has 2 additional buttons: > 1- Subscript > 2- Superscript > > If some of you has an idea on how to do this, please let me know. > > Sergio > > |
Powered by ABC Amber Outlook Express Converter