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

Home » Public Forums » archive » Re: widget_list silliness
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_list silliness [message #15731] Thu, 10 June 1999 00:00
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
J.D. Smith wrote:
>
> Can a few people try:
>
> IDL> b=widget_base()
> IDL> l=widget_list(b,xsize=20,ysize=10,value='')
> IDL> widget_control,b,/realize
>
> vs.
>
> IDL> b=widget_base()
> IDL> l=widget_list(b,xsize=20,ysize=10)
> IDL> widget_control,b,/realize
> IDL> widget_control,l,set_value=''
>
> Under linux 5.2 I get a small list with a tiny selectable entry for the
> first method, and a regular sized (10 regular text columns high) list
> with a tiny entry for the second. I'm not sure why this entry is so
> tiny, but it sure makes things problematic when I fill the list in.
> This is new to 5.2 for me.
>
> JD

I get the same correct 20x10 list widgets for both heirarchies,
under Solaris 2.5.

Dave Foster

>
> --
> J.D. Smith |*| WORK: (607) 255-5842
> Cornell University Dept. of Astronomy |*| (607) 255-6263
> 304 Space Sciences Bldg. |*| FAX: (607) 255-5875
> Ithaca, NY 14853 |*|

--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
Re: widget_list silliness [message #15738 is a reply to message #15731] Thu, 10 June 1999 00:00 Go to previous message
J.D. Smith is currently offline  J.D. Smith
Messages: 214
Registered: August 1996
Senior Member
"J.D. Smith" wrote:
>
> Can a few people try:
>
> IDL> b=widget_base()
> IDL> l=widget_list(b,xsize=20,ysize=10,value='')
> IDL> widget_control,b,/realize
>
> vs.
>
> IDL> b=widget_base()
> IDL> l=widget_list(b,xsize=20,ysize=10)
> IDL> widget_control,b,/realize
> IDL> widget_control,l,set_value=''
>
> Under linux 5.2 I get a small list with a tiny selectable entry for the
> first method, and a regular sized (10 regular text columns high) list
> with a tiny entry for the second. I'm not sure why this entry is so
> tiny, but it sure makes things problematic when I fill the list in.
> This is new to 5.2 for me.

Here's a similar issue with widget_control and multiple select lists.

IDL> list=strtrim(bindgen(12)+1,2)+string(byte(randomu(sd,20,12)* 26+97))
IDL> b=widget_base()
IDL> l=widget_list(b,value=list,ysize=4,/MULTIPLE)
IDL> widget_control, b,/REALIZE

then

IDL> widget_control, l, set_list_select=indgen(12),set_list_top=6

vs.

IDL> widget_control, l, set_list_select=indgen(12)
IDL> widget_control, l, set_list_top=6


One works, the other does not, under Linux.

JD

--
J.D. Smith |*| WORK: (607) 255-5842
Cornell University Dept. of Astronomy |*| (607) 255-6263
304 Space Sciences Bldg. |*| FAX: (607) 255-5875
Ithaca, NY 14853 |*|
Re: widget_list silliness [message #15742 is a reply to message #15731] Thu, 10 June 1999 00:00 Go to previous message
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
J.D. Smith wrote:
>
> Can a few people try:
>
> IDL> b=widget_base()
> IDL> l=widget_list(b,xsize=20,ysize=10,value='')
> IDL> widget_control,b,/realize
>
> vs.
>
> IDL> b=widget_base()
> IDL> l=widget_list(b,xsize=20,ysize=10)
> IDL> widget_control,b,/realize
> IDL> widget_control,l,set_value=''
>
> Under linux 5.2 I get a small list with a tiny selectable entry for the
> first method, and a regular sized (10 regular text columns high) list
> with a tiny entry for the second. I'm not sure why this entry is so
> tiny, but it sure makes things problematic when I fill the list in.
> This is new to 5.2 for me.
>
> JD
>

JD,

I never had anything before 5.2 on linux, but I also observe weird
things with these widget_list's: I see a similar behaviour change
whether I set the value in the definition statement or afterwards, only
that I never see "tiny" selectable entries. These appear normal to me.
However, I do not always get the correct ysize if I use
widget_control,set_value. It may be due to the lousy code in explore,
but when I tried it here, the two lists on the right (for a screen
snapshot of the main window, please see my web page) are cut off at the
bottom (i.e. the borderline is missing: all 7 text lines are displayed
correctly). Please submit this as a bug rport to RSI!

Martin.



--

|||||||||||||||\\\\\\\\\\\\\-------------------///////////// //|||||||||||||||
Martin Schultz, DEAS, Harvard University, 29 Oxford St., Pierce 109,
Cambridge, MA 02138 phone (617) 496 8318 fax (617) 495 4551
e-mail mgs@io.harvard.edu web http://www-as/people/staff/mgs/
Re: widget_list silliness [message #15744 is a reply to message #15731] Thu, 10 June 1999 00:00 Go to previous message
wmc is currently offline  wmc
Messages: 117
Registered: February 1995
Senior Member
J.D. Smith <jdsmith@astrosun.tn.cornell.edu> wrote:
> IDL> b=widget_base()
> IDL> l=widget_list(b,xsize=20,ysize=10,value='')
> IDL> widget_control,b,/realize

> IDL> b=widget_base()
> IDL> l=widget_list(b,xsize=20,ysize=10)
> IDL> widget_control,b,/realize
> IDL> widget_control,l,set_value=''

> Under linux 5.2 I get a small list with a tiny selectable entry for the
> first method, and a regular sized (10 regular text columns high) list
> with a tiny entry for the second.

Under { alpha OSF unix 5.2 Oct 30 1998} I get your same silly behaviour.

- William

--
William M Connolley | wmc@bas.ac.uk | http://www.nbs.ac.uk/public/icd/wmc/
Climate Modeller, British Antarctic Survey | Disclaimer: I speak for myself
Re: widget_list silliness [message #15747 is a reply to message #15731] Thu, 10 June 1999 00:00 Go to previous message
mgs is currently offline  mgs
Messages: 144
Registered: March 1995
Senior Member
In article <375EB38B.EF2494@astrosun.tn.cornell.edu>, "J.D. Smith"
<jdsmith@astrosun.tn.cornell.edu> wrote:

> Can a few people try:
>
>
> IDL> b=widget_base()
> IDL> l=widget_list(b,xsize=20,ysize=10,value='')
> IDL> widget_control,b,/realize
>
> vs.
>
> IDL> b=widget_base()
> IDL> l=widget_list(b,xsize=20,ysize=10)
> IDL> widget_control,b,/realize
> IDL> widget_control,l,set_value=''
>
>
> Under linux 5.2 I get a small list with a tiny selectable entry for the
> first method, and a regular sized (10 regular text columns high) list
> with a tiny entry for the second. I'm not sure why this entry is so
> tiny, but it sure makes things problematic when I fill the list in.
> This is new to 5.2 for me.

Both hierarchies are identical on MacOS with room for 10 lines and 20
characters per lines.

Help, !Version, /Str
** Structure !VERSION, 5 tags, length=40:
ARCH STRING 'PowerMac'
OS STRING 'MacOS'
OS_FAMILY STRING 'MacOS'
RELEASE STRING '5.2'
BUILD_DATE STRING 'Oct 30 1998'

--
Mike Schienle Interactive Visuals, Inc.
mgs@ivsoftware.com Remote Sensing and Image Processing
http://www.ivsoftware.com/ Analysis and Application Development
Re: widget_list silliness [message #15748 is a reply to message #15731] Thu, 10 June 1999 00:00 Go to previous message
rmlongfield is currently offline  rmlongfield
Messages: 68
Registered: August 1998
Member
In article <375EB38B.EF2494@astrosun.tn.cornell.edu>,
"J.D. Smith" <jdsmith@astrosun.tn.cornell.edu> wrote:
>
>
> Can a few people try: previous post

I get identical sized widgets for both code segments on SGI,
{ mipseb IRIX unix 5.2 }



Rose


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: arbitrary rotation of 3-d arrays
Next Topic: Re: Nice plot application

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

Current Time: Wed Oct 08 15:26:52 PDT 2025

Total time taken to generate the page: 0.00636 seconds