comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Window Contents Directly to Printer
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Window Contents Directly to Printer [message #11379 is a reply to message #11247] Thu, 19 March 1998 00:00 Go to previous message
Kirt Schaper is currently offline  Kirt Schaper
Messages: 6
Registered: February 1997
Junior Member
David Fanning wrote:
>
> Hi Folks,
>
> If anyone is following along or thinks this program is the
> least bit useful, here is the final PRINT_IT program that
> Armand and I have come up with. I got some help from the
> usual anonymous lurkers, as well. :-)

Just to ensure that this horse is totally beaten into the ground,
I think you should change the following lines to avoid the problem
of offscreen or obscured X-windows:

> ; Make the window current. Get contents.
>
> WSet, wid
> contents = TVRD()

If you the following code snippet, you won't get garbage:

; Make the window current. Get contents.
window,/free,/PIXMAP,XSIZE=!d.x_size,YSIZE=!d.ysize ; create a temp
pixmap window
device,copy=[0,0,!d.x_size,!d.y_size,0,0,wid] ; transfer wid
contents
contents = tvrd(0,0,!d.x_size,!d.y_size) ; grab pixmap
contents -- no offscreen problem
; just for us old WAVE programmers, use ALL the tvrd parameters :-{
wdelete, !d.window ; delete the temp
pixmap window
wset, wid ; make the window
current


--
-------------------------------------------------------
Stop explaining, it hurts too much!
-------------------------------------------------------
Kirt Schaper | Bell: (612) 725-2000 x4791
PET Center (11P) | net: kirt@pet.med.va.gov
VA Medical Center | FAX: (612) 725-2068
MPLS, MN 55417 | URL: http://pet.med.va.gov:8080
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Reading string array
Next Topic: call_external question

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 12:57:21 PDT 2025

Total time taken to generate the page: 0.72047 seconds