[Gambas-user] gb3: sdl.sound

2011-07-19 Thread Kevin Fishburne
What is the datatype or resolution of the Channel.Volume property? Didn't see it in the documentation and it seems somewhat grainy. Its values are between 0 and 1, which is fine, but from the sound levels produced by small amplitude adjustments it seems it may be a byte datatype. While this sou

[Gambas-user] gb3: "Make code pretty"

2011-07-19 Thread Kevin Fishburne
This is a great feature, but as a formatting Nazi I think a couple of things should be added to the "to-do" list once everything important has been taken care of. ;) If you select a range of code and right-click it to choose "Make code pretty" it should only modify the selected code, not the en

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