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

Home » Public Forums » archive » dialog_pickfile
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
dialog_pickfile [message #15915] Thu, 17 June 1999 00:00 Go to next message
Uli Schlegel is currently offline  Uli Schlegel
Messages: 1
Registered: June 1999
Junior Member
Hi


does anyone know, if it is possible to use the dialog_pickfile function
in a modal way?
or has anyone an old file witch contains the 'original' pickfile
sourcecode add this feature


Tanks very much
ULI
Re: dialog_pickfile [message #16266 is a reply to message #15915] Fri, 09 July 1999 00:00 Go to previous messageGo to next message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Harald Frey (hfrey@ssl.berkeley.edu) writes:

> Using the dialog_pickfile in IDL 5.1 on a UNIX platform I get an
> annoying behaviour. The long pathname like
>
> /disks/sprite/disk1/hfrey/idl/image/display/
>
> is shown in full in the left window even with the possibility to scroll
> to the left and right. The filename in the right window is only shown
> with the first 10-15 letters including the complete pathname but without
> a scrolling opportunity to the right. Therefore I have to guess which of
> the files might be the correct one because I do not really see the end
> of the filename. If you have many files in a subdirectory it takes
> several steps to find the right one.

This apparently is a Solaris problem. See the details here:

http://www.dfanning.com/idl5_info/long_filenames.html

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: Dialog_pickfile [message #22276 is a reply to message #15915] Fri, 03 November 2000 06:15 Go to previous messageGo to next message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Rikagaku wrote:
>
> Hello,
>
> I have a problem with filelist=Dialog_pickfile(/read,/multiple_files)
> If I selected one file located at the root of a hard disk
> (say: "c:\test1.txt") then
>> print, filelist
> c:\test1.txt
>
> BUT if I select more than one file at the root of the disk then
>> print, filelist
> c:\\test1.txt c:\\test2.txt c:\\test3.txt
>
> that is that "\\" ??? It only happens when the file are located at the
> root of a disk (multiple files from a sub-directory is OK).
>
> Of course: openR, lun, filelist[0], /get_lun does not work since
> "c:\\test1.txt" is not a valid filename under Win32
>
> Am I doing something wrong or is it a problem (fixed in IDL 5.4 ?)?
> Cheers
> Thomas Launey
>

Hi Thomas,

this is a bug.

workaround:

files=replace_string(files,'\\','\')

http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_source/idl_ html/dbase/download/replace_string.tar.gz
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_source/idl_ html/dbase/download/replace_string.sav

For further routines and copyright and licence.
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml



regards
Reimar
Re: Dialog_pickfile [message #22286 is a reply to message #15915] Thu, 02 November 2000 21:02 Go to previous messageGo to next message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
"Rikagaku" <t_launey@brain.riken.go.jp> wrote in message
news:MPG.146ccbdfbc245834989683@news.riken.go.jp...
> I have a problem with filelist=Dialog_pickfile(/read,/multiple_files)
> If I selected one file located at the root of a hard disk
> (say: "c:\test1.txt") then
>> print, filelist
> c:\test1.txt
>
> BUT if I select more than one file at the root of the disk then
>> print, filelist
> c:\\test1.txt c:\\test2.txt c:\\test3.txt

> Am I doing something wrong ...

No.

> ...or is it a problem

Yes

> ...(fixed in IDL 5.4 ?)?

No.

I suggest you report it to support@rsinc.com. They're always glad to hear
about bugs! In the meantime it shouldn't be too hard to work around it.

---
Mark Hadfield
m.hadfield@niwa.cri.nz http://katipo.niwa.cri.nz/~hadfield/
National Institute for Water and Atmospheric Research
PO Box 14-901, Wellington, New Zealand
Re: DIALOG_PICKFILE [message #24817 is a reply to message #15915] Thu, 19 April 2001 09:18 Go to previous messageGo to next message
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
Virginia Rogers wrote:
>
> Hi,
>
> Is there any way to find out the filter that the user entered in
> DIALOG_PICKFILE? I would like to be able to use the last filter that they typed
> as the default filter the next time they pick a file.
>
> Thanks!

No. Unfortunately not. Good idea though! Why don't you contact RSI and
file this as a feature request?

Note, however, that Windows users have no way to change the filter
anyway. To quote from the documentation:

"A string value for filtering the files in the file list. This keyword
is used to reduce the number of files to choose from. The user can
modify the filter unless the FIX_FILTER keyword is set. Example filter
values could be '*.pro' or '*.dat'. Only a single filter condition is
allowed.

Under Microsoft Windows, the user cannot modify the filter. (The user
can, however, enter a filter string in the filename field to filter
the files displayed.)On the Macintosh, the filter is not displayed if
the WRITE keyword is set."

Regards,

Martin

--
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[[ Dr. Martin Schultz Max-Planck-Institut fuer Meteorologie [[
[[ Bundesstr. 55, 20146 Hamburg [[
[[ phone: +49 40 41173-308 [[
[[ fax: +49 40 41173-298 [[
[[ martin.schultz@dkrz.de [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
Re: dialog_pickfile [message #39138 is a reply to message #15915] Tue, 20 April 2004 16:48 Go to previous message
kklare is currently offline  kklare
Messages: 7
Registered: April 2004
Junior Member
I have the old PICKFILE.pro for X-windows that still works on Unix and
Mac OS10 and is Windows OK.
It is compatible with pickfile.pro,v 1.11 IDL changes through 5/97. It
is not the same as the current idl_6.0/lib/obsolete/pickfile.pro v
1.26 although with the same arguments.
It does use a common: newpicker to keep the state, sorry about that.
It add some features and fixes some of the problems.
It adds a history list of directory locations visited.
It adds the size of the file selected.
It adds the ability to display the top or all of the file in ASCII or
hexadecimal using a highly modified XDISPLAYFILE.pro, last mods
2-Aug-1995 for IDL 4.0 --yes that old.
Here are some of the changes:
; 4/93 - KAK Add History Button v3.0.0, 9/93 to v3.1.0
; 4/95 - KAK List widget widths by making labels bigger.
; 8/95 - KAK Size file is selected.
; 8/95 - KAK View top/all in hex/ascii, uses new XDISPLAYFILE.
; 8/95 - KAK Change Filter base map to text edit.
; 1/96 - KAK Filter with space truncated for VMS.
; 11/96 - KAK check Unix position only on first.
I may be able to release them on request in a week or two as part of
the LLIRL package or alone.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Help with MNF in ENVI
Next Topic: Re: IDL Comments

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

Current Time: Sat Oct 11 07:43:11 PDT 2025

Total time taken to generate the page: 0.56404 seconds