|
Re: Widget inflation [message #10804 is a reply to message #10801] |
Fri, 23 January 1998 00:00  |
Brian Jackel
Messages: 34 Registered: January 1998
|
Member |
|
|
Kevin Ivory wrote:
>
> Brian Jackel wrote:
>> Has anybody encountered a situation where IDL widgets grow
>> larger everytime a DRAW_WIDGET is resized? This is version
>> { mipseb IRIX unix 5.0.2 Aug 19 1997}. The problem is that
>
> This becoming a FAQ: (are you listening Mike?)
>
> It's a well known bug ind IDL 5.0.
> Some pages of explanation are:
> http://www.rsinc.com/tipoweek/archive/widgets1.html
> http://www.dfanning.com/idl5_info/tlb_resize_problem.html
Ahhh, thanks very much. My problem was with draw widgets not
labels, but surrounding the change with UPDATE=0/1 ie.
WIDGET_CONTROL,info.drawID,UPDATE=0
WIDGET_CONTROL,info.drawID,XSIZE=nx,YSIZE=ny
WIDGET_CONTROL,info.drawID,UPDATE=1
works just fine. If you don't mind a bit of flicker,
then this also does the trick
WIDGET_CONTROL,info.drawID,XSIZE=nx,YSIZE=ny,UPDATE=1
--
Brian Jackel
|
|
|
Re: Widget inflation [message #10806 is a reply to message #10801] |
Fri, 23 January 1998 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
David Fanning (davidf@dfanning.com) writes:
> I
> would be using the keywords Draw_XSize and Draw_YSize on
> the Widget_Control command above. Try that and see if it
> helps.
Whoops! Sorry. Brian's already tried this. Have to learn
to read the WHOLE message before I get all excited. :-)
Abashed in Colorado.
-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
Re: Widget inflation [message #10808 is a reply to message #10801] |
Fri, 23 January 1998 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Brian Jackel (jackel@danlon.physics.uwo.ca) writes:
> Has anybody encountered a situation where IDL widgets grow
> larger everytime a DRAW_WIDGET is resized?
> I'm resizing the draw widget with a command like
>
> WIDGET_CONTROL,info.drawID,XSIZE=nx,YSIZE=ny
>
> If I start off with nx=ny=64 and then change to 128 then
> the draw widget gets larger as expected. However, the
> entire widget also grows by about 4 pixels in each direction.
> Then changing the size back to 64x64 gives the correct
> draw widget, but the main base grows even more.
This may be the top-level base sizing bug that Kevin refers
to, but it might also be (alas!) programmer error. :-)
The "4 pixels in each direction" part makes me suspicious.
Sounds to me like what you want to be doing is resizing
your draw widget *canvas*, not the whole draw widget. I
would be using the keywords Draw_XSize and Draw_YSize on
the Widget_Control command above. Try that and see if it
helps.
Cheers,
David
-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
|