Resetting a DRAW widget to have new size/scroll area...? [message #3075] |
Fri, 04 November 1994 13:45 |
meo
Messages: 6 Registered: November 1994
|
Junior Member |
|
|
This is fern, I have had the same exact problem, I solved it by a simple
command that is not documented in the IDL manuals that we have here
at the lab. try the commmand:
WIDGET_CONTROL,parent,XSIZE=newsize,YSIZE=newysize
IMPORTANT THAT the draw widget has been created with scroll bars of a fixed
length. So after an area has been used, than if you want to change the
the draw size, use the above command, works like a charm! It's amazing that
the IDL manuals don't specify that WIDGET_CONTROL procedure can have
XSIZE,YSIZE as key words, go figure.
Try it and let me know. We have IDL version 3.5, so at least it works for that version.
Good luck! and give some feedback.
CIAO
Fern...
|
|
|