Hi,
I would like to draw rich text to any DC, even off-screen without using wxRichTextCtrl itself.
The attached example demonstrates how this can be done in wx 2.8, but I can’t get it to work on the latest version.
I’ve hit a wall with the wxRichTextBuffer::Draw method; it requires an instance of wxRichTextSelection in it’s arguments, but there are no python bindings for that class.
As a related question, is there a good way to write C++ wx code to extend a wxpython application without having to rebuild wxpython? I saw that it can be done to some extent with weave, but I’m not sure if it would be a good idea (or even possible) to implement something like the rich text drawing from above with it.
Regards,
Toni
richtext_drawing_wx28.py (2.33 KB)