From: Mark D. <mar...@zn...> - 2006-08-12 17:29:12
|
Mattia, I wrapped wxHtmlDCRenderer for my own use. A diff is attached, with a couple of simple additions to wxHtmlWindow and WxHtmlEasyPrinting. My C / XS skills are limited so its all copy and paste really. The only thing I had difficulty with was wxHtmlDCRenderer::Render This takes an optional reference to an array. I'm not sure if I've handled the 'optional' part correctly. In connection with this, I also have extended perl versions of HtmlPrintout and HtmlEasyPrinting. Why bother? Well, I wanted to be able to override some methods and control the appearance and controls on the preview frame but not lose the 'Easy' aspects. It will allow me to create simple reporting applications using html templating systems for the output. A 'minimal' sample of this is at http://www.gigi.co.uk/wxperl/HtmlEasyPrinting.zip. This uses wxHtmlDCRenderer. Regards Mark |