| Composite.print works on GC display but doesn't work on GC printer [message #1487387] |
Tue, 25 November 2014 15:25 |
Eclipse User |
|
|
|
Hi,
I'm trying to print a part of shell.
I succeeded by using the function 'GC.copyArea()' but i'm obliged to use an old version of Eclipse and SWT, and this function doesn't seem to work on MAC (but works on windows)
so I try to do otherwise, with function 'Composite.print' but i've a problem.
In fact, this code workds :
gc = new GC(shell.getDisplay());
composite.print(gc);
=> All elements of 'composite' are drawn in the GC and appear on foreground (because GC is drawing on shell.getDisplay())
But when i try to print on printer :
GC gc2 = new GC(printer);
composite.print(gc2);
(printer is correctly created and closed)
=> There is no error, but the printing is totaly white ... (Unlike the previous code)
Have you and idea ?
Thanks.
And sorry for my very bad english..
|
|
|
Powered by
FUDForum. Page generated in 0.24859 seconds