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

Home » Public Forums » archive » Re: Resetting a DRAW widget to have new size/scroll area...?
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: Resetting a DRAW widget to have new size/scroll area...? [message #3005 is a reply to message #3003] Tue, 01 November 1994 04:40 Go to previous message
zawodny is currently offline  zawodny
Messages: 121
Registered: August 1992
Senior Member
In article <Pine.SOL.3.91.941031170641.8872A-100000@chroma> Russ Welti <rwelti@chroma.mbt.washington.edu> writes:
> I have an application with one main window, which has one
> drawing area, into which I TV images. Does anyone know:
> (snip)
> I have tried DESTROYING and rebuilding the draw widget, but with
> only partial success at best.
> (snip)
> ... When I do it, the window
> does a quick shrink and resize; but a tv to the new draw widget has
> no effect, and things get worse from there.
>
> Russ Welti


I agree that what you describe should work in principle and I am just about
ready to begin working on a similar piece of code myself. If you do indeed
need to destroy the widget to get the resize to work then all of the widget
id's will change upon recreation. The you will need to do the following:

widget_control,root,/realize
widget_control,get_value=window,draw_widget_id
wset, window

again. Since destroying the widget in my application would cause the loss
of all the information stored in UVALUES I guess that the best solution for
such an application would be to create a separately realized widget that
contains the draw widget by itself. That way destroying and creating these
would not force the loss of data (or use of common blocks) and would let
the user know that the application did not crash (since the "control panel"
widget would still exist and respond).

Good Luck,
--
Joseph M. Zawodny (KO4LW) NASA Langley Research Center
Internet: zawodny@arbd0.larc.nasa.gov MS-475, Hampton VA, 23681-0001
TCP/IP: ko4lw@ko4lw.ampr.org Packet: ko4lw@n4hog.va.usa
[Message index]
 
Read Message
Read Message
Previous Topic: Bug in map_set IDL3.6.1?
Next Topic: VAX floats to IEEE (source code avail.)

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

Current Time: Wed Oct 08 19:13:13 PDT 2025

Total time taken to generate the page: 0.00526 seconds