I'm trying to draw some text on IPXV_DocumentViewsArea using IUIX_RenderContext.DrawString - but no luck - nothing is drawn.
I've pushed my custom IUIX_ObjImpl and in the OnEvent I'm getting the IUIX_RenderContext when pEvent.Code = e_Render.
Using FillUpdateRegion works as expected (read: I can change the "coloring" of the DocumentViewsArea).
Now, I'd like to add some custom text to the DocsViewArea. I've tried with the below - but noting gets displayed.
Code: Select all
IUIX_RenderContext pRC;
...
pRC.DrawString(
'some string',
Length('some string'),
tagRct,
InstUI.Theme.StdFont[UIX_StdFont_Default],
$FF0000,
0,
clipRct,
InstUI.CreateColorsTbl,
InstUI.CreateDrawStringTags);
p.s.
The idea behind this: https://forum.pdf-xchange.com/viewtopic.php?f=66&t=33760&p=139756&hilit=double+clicking#p142502 but I'd like some custom text instead of "Double clicking ...."
-žarko