|
Re: Resize Window => Redraw contents [message #5873 is a reply to message #5865] |
Tue, 27 February 1996 00:00  |
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
|
|
|