[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Cannot read top level base window
- Subject: Re: Cannot read top level base window
- From: davidf(at)dfanning.com (David Fanning)
- Date: Sat, 2 Jun 2001 21:27:55 -0600
- Newsgroups: comp.lang.idl-pvwave
- Organization: Fanning Software Consulting
- References: <3B19873D.E4FFAD51@mediaone.net>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:25195
Leonid Syrkin (firstname.lastname@example.org) writes:
> I am trying to add "Save As.." feature into the IDL 5.0 program.
> I need to capture the whole top level base widget window for saving it
> into a file. This window contains several graphics windows inside. The
> problem is that I don't know how to get window ID for this base. In the
> program I do:
> widget_control, event.top, tlb_get_size=result
> tlb_xsize = result
> tlb_ysize = result
> widget_control, event.top, tlb_get_offset=result1
> tlb_xoffs = result1
> tlb_yoffs = result1
> ;Above works fine and gives me offset and size of the base window.
> ; Now trying TVRD I am getting error as it reads one of the graphics
> windows inside the base window.
> What should I add to make it read the window I need?
You should add another piece of software. You are not
going to be able to do this from within IDL. I use
HyperSnap from Hyperionics. Great piece of software
for about $25, I think:
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: email@example.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155