Page 1 of 1

How to get current Font.Name?

Posted: Wed Dec 27, 2017 11:11 pm
by PeterPanino
TRichViewEdit 16.15.10

How can I get the Font.Name at the caret?

I would like to show the current font name in the status bar.

Re: How to get current Font.Name?

Posted: Thu Dec 28, 2017 5:02 am
by Ceprotec

Code: Select all

rv.Style.TextStyles[rv.CurTextStyleNo].FontName
it might be useful: http://www.trichview.com/help/index.htm ... anged.html

Re: How to get current Font.Name?

Posted: Thu Dec 28, 2017 1:17 pm
by PeterPanino
Thank you - this works very well!