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

Home » Public Forums » archive » Re: Gettng a widget screenshot?
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: Gettng a widget screenshot? [message #21644] Thu, 07 September 2000 00:48
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
"J.D. Smith" wrote:
>
> David Fanning wrote:
>>
>> Richard Tyc (richt@sbrc.umanitoba.ca) writes:
>>
>>> I am thinking I am missing something simple here but I checked tvrd() and
>>> widget_info and can't seem to find a way to get the current image of the
>>> onscreen widget. ie. I have a base widget filled with Draw, sliders, buttons
>>> etc and I want to get a snapshot at full screen resoution of the realized
>>> base widget. I am also using Object graphics for the Draw windows. I
>>> thought by getting the geometry from widget_info(wbasewidget, /Geometry) I
>>> could specify to tvrd() where to get the image (xo,yo,xsize,ysize) , but
>>> tvrd works on Windows, not widgets(with windows in them) I guess. (ie. when
>>> I try this, tvrd pops up a blank 640x512 window (1/4 screen size from my
>>> preferences) and returns a blank image array?)
>>>
>>> Any ideas ? I am trying to animate how my application looks to the user. I
>>> am using Windows NT4 and IDL 5.3.
>>
>> HyperSnap-DX. About $25. One of the most useful pieces
>> of software I own.
>>
>> http://www.hyperionics.com/
>>
>
> Hate to be an open-source snob... Linux + xwd. About $0. I like:
>
> xwd -frame | convert - mywidget.gif
>
... or import (an ImageMagick tool). This may even be available for
Windows as well ??

Martin

--
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[[ Dr. Martin Schultz Max-Planck-Institut fuer Meteorologie [[
[[ Bundesstr. 55, 20146 Hamburg [[
[[ phone: +49 40 41173-308 [[
[[ fax: +49 40 41173-298 [[
[[ martin.schultz@dkrz.de [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
Re: Gettng a widget screenshot? [message #21647 is a reply to message #21644] Wed, 06 September 2000 13:49 Go to previous message
Peter Mason is currently offline  Peter Mason
Messages: 145
Registered: June 1996
Senior Member
In article <8p65a6$4mf$1@canopus.cc.umanitoba.ca>,
"Richard Tyc" <richt@sbrc.umanitoba.ca> wrote:
> (..asking how to screen-grab a widget on WinNt4)

There's always the thrifty <ALT><PrintScreen> for capturing the
currently active window (WinNT4). It offers none of the flexibility
and control you get from a good shareware screen grabber (such as the
one David recommends), but sometimes it's all you need.

Peter


Sent via Deja.com http://www.deja.com/
Before you buy.
Re: Gettng a widget screenshot? [message #21651 is a reply to message #21647] Wed, 06 September 2000 13:29 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
J.D. Smith (jdsmith@astro.cornell.edu) writes:

> I thought it would be interesting to make up a huge "test widget" (or several)
> which exercised many of the various placement/labeling/sizing issues endemic to
> IDL. Screen shots from all relevant platforms could be compiled, and it could
> server as a cross-platform widget look/feel reference for those without the
> luxury of machines to try it on. I fear the inconsistencies we'd find.

I'm afraid it would be most illuminating. But think
how useful it would be. I'd be willing to contribute
some time to a project like this.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: Gettng a widget screenshot? [message #21653 is a reply to message #21651] Wed, 06 September 2000 13:22 Go to previous message
John-David T. Smith is currently offline  John-David T. Smith
Messages: 384
Registered: January 2000
Senior Member
David Fanning wrote:
>
> Richard Tyc (richt@sbrc.umanitoba.ca) writes:
>
>> I am thinking I am missing something simple here but I checked tvrd() and
>> widget_info and can't seem to find a way to get the current image of the
>> onscreen widget. ie. I have a base widget filled with Draw, sliders, buttons
>> etc and I want to get a snapshot at full screen resoution of the realized
>> base widget. I am also using Object graphics for the Draw windows. I
>> thought by getting the geometry from widget_info(wbasewidget, /Geometry) I
>> could specify to tvrd() where to get the image (xo,yo,xsize,ysize) , but
>> tvrd works on Windows, not widgets(with windows in them) I guess. (ie. when
>> I try this, tvrd pops up a blank 640x512 window (1/4 screen size from my
>> preferences) and returns a blank image array?)
>>
>> Any ideas ? I am trying to animate how my application looks to the user. I
>> am using Windows NT4 and IDL 5.3.
>
> HyperSnap-DX. About $25. One of the most useful pieces
> of software I own.
>
> http://www.hyperionics.com/
>

Hate to be an open-source snob... Linux + xwd. About $0. I like:

xwd -frame | convert - mywidget.gif

So I get the frame too. Of course, sometimes you don't want the frame, e.g. in
printed manuals.

I thought it would be interesting to make up a huge "test widget" (or several)
which exercised many of the various placement/labeling/sizing issues endemic to
IDL. Screen shots from all relevant platforms could be compiled, and it could
server as a cross-platform widget look/feel reference for those without the
luxury of machines to try it on. I fear the inconsistencies we'd find.

JD

--
J.D. Smith /*\ WORK: (607) 255-6263
Cornell University Dept. of Astronomy \*/ (607) 255-5842
304 Space Sciences Bldg. /*\ FAX: (607) 255-5875
Ithaca, NY 14853 \*/
Re: Gettng a widget screenshot? [message #21654 is a reply to message #21653] Wed, 06 September 2000 13:04 Go to previous message
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
Richard Tyc wrote:
> I am thinking I am missing something simple here but I checked tvrd() and
> widget_info and can't seem to find a way to get the current image of the
> onscreen widget. ie. I have a base widget filled with Draw, sliders, buttons
> etc and I want to get a snapshot at full screen resoution of the realized
> base widget. I am also using Object graphics for the Draw windows. I
> thought by getting the geometry from widget_info(wbasewidget, /Geometry) I
> could specify to tvrd() where to get the image (xo,yo,xsize,ysize) , but
> tvrd works on Windows, not widgets(with windows in them) I guess. (ie. when
> I try this, tvrd pops up a blank 640x512 window (1/4 screen size from my
> preferences) and returns a blank image array?)
>
> Any ideas ? I am trying to animate how my application looks to the user. I
> am using Windows NT4 and IDL 5.3.

(1) Give focus to the widget by clicking on it
(2) Hit Alt-PrintScreen

The clipboard now contains a bitmap image of the widget window. This
works for me in Windows NT4 and 98 (it has nothing to do with IDL).

Cheers,
Liam.
http://cimss.ssec.wisc.edu/~gumley
Re: Gettng a widget screenshot? [message #21656 is a reply to message #21654] Wed, 06 September 2000 12:28 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Richard Tyc (richt@sbrc.umanitoba.ca) writes:

> I am thinking I am missing something simple here but I checked tvrd() and
> widget_info and can't seem to find a way to get the current image of the
> onscreen widget. ie. I have a base widget filled with Draw, sliders, buttons
> etc and I want to get a snapshot at full screen resoution of the realized
> base widget. I am also using Object graphics for the Draw windows. I
> thought by getting the geometry from widget_info(wbasewidget, /Geometry) I
> could specify to tvrd() where to get the image (xo,yo,xsize,ysize) , but
> tvrd works on Windows, not widgets(with windows in them) I guess. (ie. when
> I try this, tvrd pops up a blank 640x512 window (1/4 screen size from my
> preferences) and returns a blank image array?)
>
> Any ideas ? I am trying to animate how my application looks to the user. I
> am using Windows NT4 and IDL 5.3.

HyperSnap-DX. About $25. One of the most useful pieces
of software I own.

http://www.hyperionics.com/

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: SOLVED Re: puzzled with WHERE
Next Topic: Horrible map reprojections

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

Current Time: Wed Oct 08 13:35:53 PDT 2025

Total time taken to generate the page: 0.00732 seconds