Page 1 of 1

Using OnDrawStyleText with ScaleRichView

Posted: Tue Jun 07, 2016 10:24 pm
by DavidRM
Is it possible to use the RVStyle.OnDrawStyleText event with SRV?

Are there special issues that have to be dealt with?

Thanks.

-David

Posted: Wed Jun 08, 2016 7:32 am
by Sergey Tkachenko
Before SRV v7 - no.
In version 7 and newer - yes.
However, you cannot simply use TextOut or similar simple methods to draw text, because SRV positions each character manually.
You must use Draw method of a text style to draw text.

You can see the demo Demos\RVDemos\Assorted\Custom Draw\CustomDraw\

Posted: Wed Jun 08, 2016 7:54 pm
by DavidRM
Ah, OK. I see I will need to update my SRV (I'm still in v6.1.3).

Thanks.

-David