Re: [Gambas-user] About Printer

2011-07-19 Thread Fabien Bodard
Le 19 juillet 2011 16:10, Benoît Minisini a écrit : >> Le 19 juillet 2011 15:40, Benoît Minisini >> >> a écrit : >> >> Benoit, >> >> >> >> Paint.scale work good if there is not text ..; but if there is ... >> >> then text font size is increased by the scale too >> > >> > This is normal. This it t

Re: [Gambas-user] About Printer

2011-07-19 Thread Benoît Minisini
> On Tue, 2011-07-19 at 15:40 +0200, Benoît Minisini wrote: > > > Benoit, > > > > > > Paint.scale work good if there is not text ..; but if there is ... > > > then text font size is increased by the scale too > > > > This is normal. This it the goal of that matrix: everything is scaled. I > > add

Re: [Gambas-user] About Printer

2011-07-19 Thread Demosthenes Koptsis
On Tue, 2011-07-19 at 15:40 +0200, Benoît Minisini wrote: > > Benoit, > > > > Paint.scale work good if there is not text ..; but if there is ... > > then text font size is increased by the scale too > > > > This is normal. This it the goal of that matrix: everything is scaled. I > added > a re

Re: [Gambas-user] About Printer

2011-07-19 Thread Benoît Minisini
Sorry for the engligh... > > Don't suppose that Paint.Width or Paint.Height are points. But you can be > sure that the number of units of Paint.Width equals Printer.PaperWidth in > millimeters (provided that FullPage is set of course). > > > Then M.Cs say : what about printer natural margins ? H

Re: [Gambas-user] About Printer

2011-07-19 Thread Benoît Minisini
> Le 19 juillet 2011 15:40, Benoît Minisini > > a écrit : > >> Benoit, > >> > >> Paint.scale work good if there is not text ..; but if there is ... > >> then text font size is increased by the scale too > > > > This is normal. This it the goal of that matrix: everything is scaled. I > > added a

Re: [Gambas-user] About Printer

2011-07-19 Thread Fabien Bodard
Le 19 juillet 2011 15:40, Benoît Minisini a écrit : >> Benoit, >> >> Paint.scale work good if there is not text ..; but if there is ... >> then text font size is increased by the scale too >> > > This is normal. This it the goal of that matrix: everything is scaled. I added > a remark about that o

Re: [Gambas-user] About Printer

2011-07-19 Thread Benoît Minisini
> Benoit, > > Paint.scale work good if there is not text ..; but if there is ... > then text font size is increased by the scale too > This is normal. This it the goal of that matrix: everything is scaled. I added a remark about that on the "How to print" wiki page. And your SC() function is i

Re: [Gambas-user] About Printer

2011-07-19 Thread Benoît Minisini
> Please don't forget to publish your working solution. We've spent 3 > days with Fabian in private investigations with the printing and at > the and I have a nearly working solution for the printing. The > emphasis is on the word NEARLY. There are still problems with some > pixel constraints. > Pr

Re: [Gambas-user] About Printer

2011-07-19 Thread M. Cs.
Please don't forget to publish your working solution. We've spent 3 days with Fabian in private investigations with the printing and at the and I have a nearly working solution for the printing. The emphasis is on the word NEARLY. There are still problems with some pixel constraints. Printing is ev

Re: [Gambas-user] About Printer

2011-07-19 Thread Demosthenes Koptsis
On Tue, 2011-07-19 at 15:13 +0200, Benoît Minisini wrote: > > > > > > > > 'Set scale > > > > wFactor = prtPrinter.PaperWidth / Paint.Width > > > > hFactor = prtPrinter.PaperHeight / Paint.Height > > > > Paint.Scale(wFactor, hFactor) > > > > > Ok, i took this example from this page h

Re: [Gambas-user] About Printer

2011-07-19 Thread Benoît Minisini
> > Is it possible to add properties such LeftMargin, RightMargin, > TopMargin, BottomMargin? > I'm afraid not. But you should not use them, because they may be wrong, and are often not the same according to the border. What you should do is printing with FullPage set to TRUE, and let the user

Re: [Gambas-user] About Printer

2011-07-19 Thread Benoît Minisini
> > > > > > 'Set scale > > > wFactor = prtPrinter.PaperWidth / Paint.Width > > > hFactor = prtPrinter.PaperHeight / Paint.Height > > > Paint.Scale(wFactor, hFactor) > > > I'm stupid, the scale factors must be inverted! wFactor = Paint.Width / prtPrinter.PaperWidth hF

Re: [Gambas-user] About Printer

2011-07-19 Thread Demosthenes Koptsis
On Tue, 2011-07-19 at 14:43 +0200, Benoît Minisini wrote: > > i want to print a rectangle on a page. > > > > i have this code: > > > > > > ' Gambas class file > > > > Private Const PAPER_FACTOR As Float = 7.55 > > > > Public Sub btnPrint_Click() > > > > If prtPrinter.Configu

Re: [Gambas-user] About Printer

2011-07-19 Thread Fabien Bodard
Benoit, Paint.scale work good if there is not text ..; but if there is ... then text font size is increased by the scale too the only way i've found is in the joined archive Le 19 juillet 2011 14:43, Benoît Minisini a écrit : >> i want to print a rectangle on a page. >> >> i have this code: >

Re: [Gambas-user] About Printer

2011-07-19 Thread Benoît Minisini
> i want to print a rectangle on a page. > > i have this code: > > > ' Gambas class file > > Private Const PAPER_FACTOR As Float = 7.55 > > Public Sub btnPrint_Click() > > If prtPrinter.Configure() Then Return > > Me.Enabled = False > Inc Application.Busy > prtPrinter

Re: [Gambas-user] About Printer

2011-07-19 Thread Demosthenes Koptsis
i want to print a rectangle on a page. i have this code: ' Gambas class file Private Const PAPER_FACTOR As Float = 7.55 Public Sub btnPrint_Click() If prtPrinter.Configure() Then Return Me.Enabled = False Inc Application.Busy prtPrinter.Print Dec Application.Busy

Re: [Gambas-user] About Printer

2011-07-14 Thread Demosthenes Koptsis
yes it is done! On Thu, 2011-07-14 at 15:16 +0200, Benoît Minisini wrote: > > yes here it is. > > > > :) > > > > OK, it is fixed in revision #3935. > > Regards, > -- Regards, Demosthenes Koptsis. -- AppSumo Presen

Re: [Gambas-user] About Printer

2011-07-14 Thread Benoît Minisini
> yes here it is. > > :) > OK, it is fixed in revision #3935. Regards, -- Benoît Minisini -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "

Re: [Gambas-user] About Printer

2011-07-12 Thread Demosthenes Koptsis
yes here it is. :) On Tue, 2011-07-12 at 23:43 +0200, Benoît Minisini wrote: > > These days i am learning Printer class and i have some questions about > > it. > > > > For the beginning i print a blank page and some status messages in a > > textarea. > > > > ... > > > > The question is why the

Re: [Gambas-user] About Printer

2011-07-12 Thread Benoît Minisini
> These days i am learning Printer class and i have some questions about > it. > > For the beginning i print a blank page and some status messages in a > textarea. > > ... > > The question is why the prtPrinter_End event is not gining the status > message? > > In TextArea i get only > > Set nu

[Gambas-user] About Printer

2011-07-11 Thread Demosthenes Koptsis
These days i am learning Printer class and i have some questions about it. For the beginning i print a blank page and some status messages in a textarea. the code is this - Public Sub btnPrint_Click() If prtPrinter.Configure() Then Return Me.Enabled = False Inc Application