trichview.com

trichview.support




Re: Change Size (textStyles) at Run Time


Return to index


Author

Message

Sergey Tkachenko

Posted: 12/21/2004 13:04:35


You code changes size for all text of the 0-th text style, and it should

work (you can use Reformat instead of Format to keep the caret position).


But I guess you want to change size of the selected text only. Use

ApplyStyleConversion method and OnStyleConversion event. The example is in

Demos\Delphi\Editors\Editor 2\

Or use RichViewActions:

http://www.trichview.com/resources/actions/



>

> How can I change runtime the size in TRicViewEdit??

>

> Example:

> var RE : TRichViewedit;

>

> RE.Style.TextStyles[0].Size := 10;

> RE.Format;





Powered by ABC Amber Outlook Express Converter