Steve, On 19/04/2012 15:36, Steve Cookson wrote:
For instance, the beautiful graphic which looks like a 'drag the margins' style of box does nothing.
It isn't actually meant to do anything I don't think.
The up and down spin-buttons on the margins seem only to allow the value zero, but a value of greater than 2.5 also gives zero.
That's Ubuntu for you. You'll find that if you set the units to millimetres or points, the spin buttons will work fine. Other distros seem to be OK too.
Any insight would be very happily received.
One of the main reasons for getting together the binary releases of wxWidgets 2.9.3 and Citrus Perl was to give most users the chance to look at migrating to 2.9.3.
The problem is that the 2.8 branch of wxWidgets has been in 'essential update only' mode for a few years. As background, printing on Linux in 2.8.x has two modes in wxWidgets. The original postscript mode is a fallback for when nothing else is available. wxWidgets will build with support for libgnomeprint if it is available. These are the GnomePrint dialogs you are seeing.
Support for upgrading GnomePrint seems to have been largely abandoned. (Apologies to any GnomePrint developers if my impression is wrong). In wxWidgets 2.9.x, support is added for GTK+ printing, as seems to be used pretty much everywhere else by default. No-one is working on GnomePrint compatibility as it is regarded as deprecated.
Several aspects of this leave you a bit stuck I think. Making the move to wxWidgets 2.9.3 may not give you what you want. I don't see any opportunity in the GTK+ printing dialogs to set margins.
I think that if you need to collect user info for initial margins and page size just create your own dialog to collect the info and pass it to a Wx::RichTextPrinting object via
$obj->SetPageSetupData($data); Hope it helps. Mark
