Steve Cookson wrote:
Hi,
I'm not sure whether I should be sending this to the group or directly
to Mattia
Better to the group (it will be in the archives, and there are other
people beside me that have some experience in wrapping wxWidgets classes).
but I'm trying to understand how to print a wxRichTextCtrl
from wxPerl. I understand that wxRichTextPrinting and wxRichTextPrintout
are not implemented yet in wxPerl.
Correct.
So I need to do something to access the original C++ code (maybe wrap or
re-write). Re-writing seems to be an easier route as I don't understand
the Wx XS framework that Mattia uses. However, it would be a bit
anti-social. It would be better to use the current wxPerl framework.
I wouldn't call it antisocial, but wrapping the C++ code is
definitely more maintainable in the long run.
As far as I can see the wxPerl framework is dll driven and provides an
XS-based interface to the dlls? Is that right?
Correct.
> There seems to be some
automation/facilitation of the process, but it's not clear to me how it
works. I've also never used XS before.
Are there some instructions about how to do this available?
I'm sure I answered this on the mailing list, but can't find the
mails; I just committed some documentation that should at least get you
started; see lib/Wx/NewClass.pod. I think that wxRichTextPrinting
should be reasonably easy to wrap.
Regards,
Mattia