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

Home » Public Forums » archive » Re: Printing a collection of widget items
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Printing a collection of widget items [message #49494] Wed, 02 August 2006 06:59 Go to next message
Jim Pendleton, ITT Vi is currently offline  Jim Pendleton, ITT Vi
Messages: 13
Registered: August 2006
Junior Member
If you're on Windows, you might consider the following IDL utility.

http://www.ittvis.com/codebank/search.asp?FID=413

It relies on a trick that may or may not be avilable with all graphics
cards.

Jim P.

"Ryan." <rchughes@brutus.uwaterloo.ca> wrote in message
news:1154463553.820337.128570@75g2000cwc.googlegroups.com...
> Dear All,
>
> I have one window with a collection of button, text, draw and label
> widgets (in one base widget) and would like to know if there is a way
> of printing it. I tried to get the value (id) of the base widget to
> try to use David Fanning's TVREAD routine, but you cannot call the
> get_value parameter on a widget_base. Has anyone been able to do this
> or does anyone know what the correct way to do it? My routine is quite
> lengthy because there are so many widgets so I will not include it but
> I can put it up if you would like. Thanks.
>
> Ryan.
>
Re: Printing a collection of widget items [message #49499 is a reply to message #49494] Tue, 01 August 2006 17:34 Go to previous messageGo to next message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
Ryan. wrote:
> Dear All,
>
> I have one window with a collection of button, text, draw and label
> widgets (in one base widget) and would like to know if there is a way
> of printing it. I tried to get the value (id) of the base widget to
> try to use David Fanning's TVREAD routine, but you cannot call the
> get_value parameter on a widget_base. Has anyone been able to do this
> or does anyone know what the correct way to do it? My routine is quite
> lengthy because there are so many widgets so I will not include it but
> I can put it up if you would like. Thanks.
>
> Ryan.
>

Do you want a screenshot of your widget program? I'm don't think you can
do that from within IDL, but any decent image viewer / editor (e.g.,
Irfan View on Windows) can take screenshots. If you can find a command
line tool (probably Image Magick has one) to capture the currently
active window, you can just spawn a call to that.

If you don't care about the exact widget layout but more about the
information in the widgets, you can just capture the draw widget with
TVREAD, print it and manually print the values from the text / label
widgets next to it (XYOUTS).

Good luck,
Benjamin
Re: Printing a collection of widget items [message #49589 is a reply to message #49499] Wed, 02 August 2006 08:14 Go to previous message
Ryan. is currently offline  Ryan.
Messages: 77
Registered: March 2006
Member
Hi Benjamin,

> If you don't care about the exact widget layout but more about the
> information in the widgets, you can just capture the draw widget with
> TVREAD, print it and manually print the values from the text / label
> widgets next to it (XYOUTS).

Thanks for your response but all my draw widgets are indicator lights
(only 1 of 5 colors) for about 30 different things so putting the
labels on manually would not be feasible. It would be better for me to
spend my time writing something where all the indicators are written
directly to a postscript file. I am using IDL on UNIX and have the
plotting set to X windows. Thanks for the suggestion though.

Ryan.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: can't change PATH preference under Windows?
Next Topic: Interpolation question

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

Current Time: Wed Oct 08 11:41:36 PDT 2025

Total time taken to generate the page: 0.00510 seconds