Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Composite.print works on GC display but doesn't work on GC printer
Composite.print works on GC display but doesn't work on GC printer [message #1487387] Tue, 25 November 2014 15:25
Eclipse UserFriend
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.. Rolling Eyes
Previous Topic:Crash in ImageData.blit() when trying to resize Display window
Next Topic:how to get word DocumentBeforeSaveEvent with ole listener?
Goto Forum:
  


Current Time: Sun Nov 09 14:13:27 EST 2025

Powered by FUDForum. Page generated in 0.03469 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top