Re: [Gambas-user] Printing from a module

2012-11-15 Thread Rolf-Werner Eilert
Am 15.11.2012 14:38, schrieb Tobias Boege: > On Thu, 15 Nov 2012, Rolf-Werner Eilert wrote: >> Hi folks, I have a question: >> >> In FMain I have a Printer object (Printer icon) and a Button to click on >> for printing. >> >> The whole printing procedure should take place in a separate module to

Re: [Gambas-user] Printing from a module

2012-11-15 Thread Rolf-Werner Eilert
I've got it running, I found Paint.DrawText instead of Paint.Text would do it... Am 15.11.2012 15:30, schrieb Fabien Bodard: > Why the printer is on your form ? > > > In your module declare a new printer > > Drucker = new printer() as "Drucker" > > You must declare the printer where you use it. >

Re: [Gambas-user] Printing from a module

2012-11-15 Thread Rolf-Werner Eilert
Am 15.11.2012 14:38, schrieb Tobias Boege: > On Thu, 15 Nov 2012, Rolf-Werner Eilert wrote: >> Hi folks, I have a question: >> >> In FMain I have a Printer object (Printer icon) and a Button to click on >> for printing. >> >> The whole printing procedure should take place in a separate module to

Re: [Gambas-user] Printing from a module

2012-11-15 Thread Rolf-Werner Eilert
Am 15.11.2012 15:30, schrieb Fabien Bodard: > Why the printer is on your form ? Because I saw this in the printer example :-) And it kinda works. > > > In your module declare a new printer > > Drucker = new printer() as "Drucker" It complaints about the (), i. e. it says ") too early". So I left

Re: [Gambas-user] Printing from a module

2012-11-15 Thread Fabien Bodard
Why the printer is on your form ? In your module declare a new printer Drucker = new printer() as "Drucker" You must declare the printer where you use it. There is another way but i think this one is the most simpler. Andif i understand well you don't need the printer object on the form 201

Re: [Gambas-user] Printing from a module

2012-11-15 Thread Tobias Boege
On Thu, 15 Nov 2012, Rolf-Werner Eilert wrote: > Hi folks, I have a question: > > In FMain I have a Printer object (Printer icon) and a Button to click on > for printing. > > The whole printing procedure should take place in a separate module to > keep the lengthy code apart from FMain code. >

[Gambas-user] Printing from a module

2012-11-15 Thread Rolf-Werner Eilert
Hi folks, I have a question: In FMain I have a Printer object (Printer icon) and a Button to click on for printing. The whole printing procedure should take place in a separate module to keep the lengthy code apart from FMain code. The Button_Click event calls druck.start in the module "druck"