On Wed, 03 Sep 2014, Stephen wrote: > On 09/03/2014 02:33 PM, Jussi Lahtinen wrote: > >> You asked why am I using 10 drawing areas, oddly enough the answer is to > >> simplify things from a layout standpoint... > > > > Just figure out how to draw one card and make multiple copies of it to same > > one big drawing area..? > > > > > Since each drawing area is the same size, the same drawing commands, > right down to the coordinates, are used to draw on each one, only a > portion of the contents of each small DrawingArea changes (in this case > its a QR Code). Everything else remains the same. The drawing portion of > the program does not have to be concerned with placing an item on a page > (one large DrawingArea), and it doesn't care where the DrawingArea it is > manipulating is going to be placed, another piece of code is concerned > with that functionality. > All well and good, until we get to printing... > >> Now to print the darn things. > >> > > Yeah... to print the things you need to give the same drawing commands to > > the Printer object. See how above would make things simple... > > Or you need to give picture of the wanted result for the Printer object. > > Not sure what is reasonable way to do this. > > > > > > I was thinking of taking the panel containing the drawing areas, > turning it into one big bitmap, and then spooling that file off to the > printer. Has anyone out there done this kind of thing? >
Sounds a bit weird. A Printer object is also a potential drawing device, so you shouldn't take screenshots to print something of which your program knows how to reproduce it. Do you have a feeling by now how painting works in Gambas (or how it is supposed to work)? If not, I have some spare time the next days... As far as my experience goes, painting is a black box for many newbies. But when you get used to it, it makes kinda sense :-) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user