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 
Return to the default flat view Create a new topic Submit Reply
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
[Message index]
 
Read Message
Read Message
Previous Topic: Q: IDL benchmarks
Next Topic: cross platform i/o problem

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

Current Time: Fri Oct 10 06:39:08 PDT 2025

Total time taken to generate the page: 1.44058 seconds