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

Home » Public Forums » archive » Re: Widget inflation
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: Widget inflation [message #10808 is a reply to message #10801] Fri, 23 January 1998 00:00 Go to previous messageGo to previous message
davidf is currently offline  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/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL FAQ info
Next Topic: Re: color .ps/gamma_ct

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

Current Time: Sun Nov 30 10:06:16 PST 2025

Total time taken to generate the page: 1.19145 seconds