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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Widget inflation [message #10801] Fri, 23 January 1998 00:00
mgs is currently offline  mgs
Messages: 144
Registered: March 1995
Senior Member
In article <34C8AA6A.CBC530C5@linmpi.mpg.de>, Kevin Ivory
<Kevin.Ivory@linmpi.mpg.de> 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

Yup, I'm listening. Thanks for bringing this to my attention, Kevin. I
should have been on top of that since it bit me pretty badly a few months
back.

Folks, please feel free to direct these kind of comments directly to me
for the next month or two. I'm in a situation where I'm swamped between
two projects (with one of them requesting mandatory overtime) and have
very little free time. Unfortunately, neither project is using IDL at the
moment.

Regards,

--
Mike Schienle Interactive Visuals
mgs@sd.cybernex.net http://ww2.sd.cybernex.net/~mgs/
Re: Widget inflation [message #10804 is a reply to message #10801] Fri, 23 January 1998 00:00 Go to previous message
Brian Jackel is currently offline  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 Go to previous message
davidf is currently offline  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 Go 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/
Re: Widget inflation [message #10813 is a reply to message #10801] Fri, 23 January 1998 00:00 Go to previous message
Kevin Ivory is currently offline  Kevin Ivory
Messages: 71
Registered: January 1997
Member
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

Best regards
Kevin
--
Kevin Ivory Tel: +49 5556 979 434
Max-Planck-Institut fuer Aeronomie Fax: +49 5556 979 240
Max-Planck-Str. 2 mailto:Kevin.Ivory@linmpi.mpg.de
D-37191 Katlenburg-Lindau, GERMANY http://www.gwdg.de/~kivory2/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL FAQ info
Next Topic: Re: color .ps/gamma_ct

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

Current Time: Wed Oct 08 19:32:56 PDT 2025

Total time taken to generate the page: 0.00694 seconds