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

Home » Public Forums » archive » Re: CW_FILESEL size
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: CW_FILESEL size [message #42180] Thu, 06 January 2005 10:30
Y.T. is currently offline  Y.T.
Messages: 25
Registered: December 2004
Junior Member
pulsifer@bigfoot.com wrote:
> I have CW_FILESEL working, but the list containing the directories
and
> filenames is only 1 entry high. It has a tiny scroll bar on the
right.
>
> I tried setting XSize and YSize via Widget_Control (you can't do it
on
> widget creation) and the window got larger, but the file list did
not.
> Any suggestions?
>
> I am running on Max OS X. IDL 5.6
>
> Dean Pulsifer

Well, in my IDL version 5.5 CW_FILESEL is found in the /lib
subdirectory and it contains the following snippet around line 821:

;; File list for current dir
state.fileList = WIDGET_LIST(base, VALUE=dFiles, UVALUE='fileList',$
MULTIPLE=mult,
UNAME='CW_FILESEL_FILELIST')
WIDGET_CONTROL, state.fileList, YSIZE=8 ; set after because of VMS
bug

I do not know what this "VMS bug" might be or what the result might be
of changing things around here, but for the time being I would copy the
.pro file to my local directory and see whether things work when the
YSIZE keyword is passed directly to WIDGET_LIST. If yes, you have a
workaround as long as you keep in mind that your code may or may not
work under VMS.

Now if this "VMS bug" merely causes the WIDGET_LIST not to recognize
YSIZE at all, then there wouldn't be a problem as long as you retain
the second line as well. If, on the other hand the YSIZE keyword does
something destructive, you may have to code around this section along
the lines of

if !VERSION.OS_FAMILY eq 'MacOS' then begin
state.fileList = WIDGET_LIST(base, VALUE=dFiles,
UVALUE='fileList',$
YSIZE=8, MULTIPLE=mult,
UNAME='CW_FILESEL_FILELIST')
endif else begin
state.fileList = WIDGET_LIST(base, VALUE=dFiles,
UVALUE='fileList',$
MULTIPLE=mult,
UNAME='CW_FILESEL_FILELIST')
WIDGET_CONTROL, state.fileList, YSIZE=8
endelse

Or the moral equivalent.
cordially

Y.T.

--
Remove YourClothes before you email me.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: How to add standard gaussian noise to a image pixel
Next Topic: Re: labels for multiple x axis

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

Current Time: Wed Oct 08 18:44:43 PDT 2025

Total time taken to generate the page: 0.00896 seconds