[Gambas-user] More on Print bugs.
Michael
mdavies5 at ...169...
Sun Jan 2 04:59:10 CET 2011
Sorry about forgetting your previous advice. I moved house and was off
air for 10 days. This problem is not unique to Gambas. Various other
apps have the same problem and have been reported. Evince and Gimp
overcome it by using the GTK+ "GtkPageSetupUnixDialog". I'm not sure how
they then pass the information to the native print Dialog. The GTK+
reference manual points out that they only use their
GtkPrintUnixDialogif a native dialog does not exist.
I am using Gambas3 V3425 with LibGTK2.0 V2.22.0 and Gambas2-GB-GTK
V.2.21.0-1build1. Should I have a Gambas3-GB-GTK?
As a work around I decided to use the QT4 library but this brought it's
own set of problems. Using the code I previously supplied, on the line
"Paint.Begin(hPrinter)" I get an error "Device already being painted".
If I remove this line and the "Paint.End" line then the document will
print in Landscape but the font is very, very small. I have to reset the
font.size to 56 to get a size approximating 14.
If I set a breakpoint on the Paint.Begin line and test for Paint.Device,
it already knows that the device is my printer without it being set.
I was under the impression that the Gambas code was portable between GTK
or QT4 without major changes.
As an experiment I also set the library back to GTK+ and ran the print
module without any Paint.Begin or Paint.End lines. No errors reported.
Sorry to keep on about this problem but I moved from Windows to Ubuntu
and from .NET to Gambas2 and was delighted with the whole process. I
think if Gambas3 is released for production in it's current form it will
not improve it's reputation.
Regards
Michael
On 02/01/11 06:15, Benoît Minisini wrote:
>> Benoit,
>> I have investigated print problems further and posted following question
>> on Ubuntu One website. It would appear to be a Ubuntu problem not a
>> Gambas problem.
>>
>> There are many different Print dialogs but one is very common and is
>> used by Gimp, Shutter, Evloution and Simple Scan. In all these apps the
>> "Page Size" and "Orientation" are disabled. The same dialog in Firefox,
>> Thunderbird and GEdit works OK. I program in Gambas3 which uses this
>> dialog in conjunction with the GTK+ library and it also has these
>> options disabled. If I use the QT4 library then a different print dialog
>> is displayed with no problems. Anybody else notice this problem and
>> found a solution?
> As I told you before, this was fixed, at least on my machine: "Page size" and
> "Orientation" are not disabled anymore.
>
> So are you sure that you use a recent svn revision?
>
> Can somebody else confirm that "Page size" and "Orientation" are not disabled
> anymore on their GTK+ printer configuration dialog?
>
> Here is Michael's project, slightly modified.
>
>
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment, and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
>
>
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
More information about the User
mailing list