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

Home » Public Forums » archive » Re: Changes in wigdet behavior/appearance under IDL 4.0
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: Changes in wigdet behavior/appearance under IDL 4.0 [message #4502 is a reply to message #4493] Thu, 15 June 1995 00:00 Go to previous messageGo to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
zawodny@arbd0.larc.nasa.gov (Joseph M Zawodny) writes:

> I am running IDL V4.0 under OSF/1 V3.0 and I have noticed that the new
> release of IDL has radically altered the appearence of my widgets. I have
> traced the "problem" to the following example.

> r = widget_label(b,value='Junk',xsize=4)

> Under previous versions of IDL this would work as expected, but under V4.0
> the text is truncated (only a fraction of a letter is visible). Dropping
> the XSIZE keyword "fixes" the problem.

> It appears that the "units" on the XSIZE keyword has changed from
> characters to pixels. ...

I also ran into this problem during the beta testing of IDL 4.0, and complained
to RSI. They said that widget_label is now working corectly, that it's
supposed to be in pixels. After some experimentation, I came to the conclusion
that previous versions of IDL were ignoring the XSIZE and YSIZE keywords and
simply sizing it based on the number of characters. We were only being fooled
that the XSIZE and YSIZE keywords were doing something.

To solve this problem, we've gone through our code and removed all references
to XSIZE and YSIZE in calls to WIDGET_LABEL. In my opinion, having XSIZE and
YSIZE in pixels for a text label is useless.

Bill Thompson
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: HELP: frames around widgets
Next Topic: IDL 4.0--Add help topics???

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

Current Time: Wed Oct 08 16:01:18 PDT 2025

Total time taken to generate the page: 0.00393 seconds