Re: [Gambas-user] Gambas3 Printing

2010-12-03 Thread Michael
Thanks Fabien, I am getting there slowly. Can print in a small test app but in a real world app I just get blank pages. One of the problems I overcame was the different units used by the printer and Paint routines. In Gambas2 the printer and Draw objects both used pixels. Now we seem to have a m

Re: [Gambas-user] First look at Gambas 3

2010-12-03 Thread Fabien Bodard
http://0pointer.de/lennart/projects/libcanberra/ nothing more that google can tell us... i think it's a gnome lib ... but what is the link between that and qt :/... it's a mystery -- Increase Visibility of Your 3D Game Ap

Re: [Gambas-user] Gambas3 Printing

2010-12-03 Thread Fabien Bodard
Private hPrint As New Printer As "Printer" Public Sub Form_Open() If Not hPrint.Configure() Then hPrint.Print Endif End Public Sub Printer_Begin() hPrint.Count = 1 End Public Sub Printer_Draw() Paint.Font.Size = 12 Paint.Text("Hello", 30, 50) Paint.fill End Public Sub Pri

Re: [Gambas-user] First look at Gambas 3

2010-12-03 Thread Benoît Minisini
> the same problem on qt than me, > Apparently there is something weird in "libcanberra". Do you know what is that library? -- Benoît Minisini -- Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! T

Re: [Gambas-user] First look at Gambas 3

2010-12-03 Thread Fabien Bodard
the same problem on qt than me, fab...@maison:~/Documents/Projets/Composants/gb.form.widgets$ valgrind --tool=memcheck --track-origins=yes --num-callers=50 gbx3 ==2477== Memcheck, a memory error detector ==2477== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==2477== Using Val

[Gambas-user] Gambas3 Printing

2010-12-03 Thread Michael
Does anybody have any experience of printing with Gambas3? My sample code is below and the result is: Calling .Configure fires the _End event. Then the _Begin, _Paginate and _Draw events all fire. Then I get an error "(Test:4193): Gtk-CRITICAL **: IA__gtk_print_context_get_cairo_context: assertion

Re: [Gambas-user] First look at Gambas 3

2010-12-03 Thread Michael
Benoit, Here is an important piece of additional information. If I change my project components from gb.qt4 to gb.gtk then the error #11 disappears. Also my desktop height is correctly reported as 1050 when using GTK. Also the font of a GTK frame does not automatically go bold. I was using QT in

Re: [Gambas-user] First look at Gambas 3

2010-12-03 Thread Michael
Thanks Rolf, I did consider that but why would it change from Gambas 2 and make upgrading so tiresome? Also with the change in colors I mentioned, I thought this might be because I had a basically blue desktop theme when I installed Gambas2 but a different desktop theme when I installed Gambas3

Re: [Gambas-user] First look at Gambas 3

2010-12-03 Thread Rolf-Werner Eilert
Just reading by... > resolution. My system is 1680*1050 resolution and G2 reports > Desktop.height as 1050. G3 reports desktop height as 1002! The desktop Maybe Gambas deducts the height for the... gosh what was its name... "kicker" or whatever... control bar at the lower screen edge? :-) Regar