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

Home » Public Forums » archive » Re: Resize Window => Redraw contents
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: Resize Window => Redraw contents [message #5865] Thu, 29 February 1996 00:00
mgs is currently offline  mgs
Messages: 144
Registered: March 1995
Senior Member
In article <4gvb56$20q@madeline.INS.CWRU.Edu>, Ken Kump <ksk3@po.cwru.edu>
wrote:

> Perhaps I'm asking too much, but is it possible for IDL to
> automatically (or with some refresh command) redraw the
> contents of a window after one resizes it?

Not automatically. IDL can be programmed to do that in widget applications
by using the event.x and event.y values when a resize event occurs. Email
for details if you're interested.

--
Mike Schienle
Custom Data Visualizationsmgs@visdata.com
mgs@visdata.com
Re: Resize Window => Redraw contents [message #5873 is a reply to message #5865] Tue, 27 February 1996 00:00 Go to previous message
Ken Knighton is currently offline  Ken Knighton
Messages: 44
Registered: May 1995
Member
Ken Kump <ksk3@po.cwru.edu> wrote:
> Perhaps I'm asking too much, but is it possible for IDL to
> automatically (or with some refresh command) redraw the
> contents of a window after one resizes it?

The program has to replot (scale and redraw for images) after the
plot window has been enlarged/reduced. I don't think that there
is any good way of automatically detecting the resize of a normal
plot window, but you can use the cursor command to detect mouse
clicks. This could be used as a signal to refresh the screen.

If you are using widgets, you can have a button that does this or
you can use the TLB_SIZE_EVENTS keyword to WIDGET_BASE to generate
events when the window resizes. When a resize event is encountered
your program must resize the draw widget and then replot/redraw
whatever is in the window accordingly. If you make a resize button,
you can launch a dialog box that asks the user for a new size or
just have a default scale up or down ratio. Your program must
then resize everything and replot/redraw.

I hope this helps.

Ken Knighton knighton@gav.gat.com knighton@cts.com
General Atomics
San Diego, CA
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Q: IDL benchmarks
Next Topic: cross platform i/o problem

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

Current Time: Wed Oct 08 15:39:32 PDT 2025

Total time taken to generate the page: 0.00535 seconds