Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Printing a Layout
Printing a Layout [message #32134] |
Tue, 26 April 2011 17:04 |
GusPS
Messages: 1 Registered: April 2011 Location: Argentina
|
Junior Member |
|
|
Hi,
Is it possible to send a layout to the printer?
I've tested this and I got a blank page:
MyLayout<TopWindow> mlo;
//Set some Label, StaticText values, etc.
PrinterJob pj;
pj.Execute();
Draw& w = pj;
w.StartPage();
mlo.Paint(w);
w.EndPage();
Thanks!
|
|
|
Re: Printing a Layout [message #32181 is a reply to message #32134] |
Fri, 29 April 2011 11:22 |
|
mirek
Messages: 13975 Registered: November 2005
|
Ultimate Member |
|
|
No. It is not intended for such usage.
BTW, what you are trying to do here is not printing layout, but resulting dialog. This might work partially, but you need to use one of
void DrawCtrl(Draw& w, int x = 0, int y = 0);
void DrawCtrlWithParent(Draw& w, int x = 0, int y = 0);
for this task (the reason is that some parts of widget are normally drawn via chameleon using host platform widget drawing code, which only supports screen in this scenario, so above functions in fact paint through conversion to raster).
Mirek
[Updated on: Fri, 29 April 2011 11:22] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Mar 29 10:49:53 CET 2024
Total time taken to generate the page: 0.01613 seconds
|