dialog_pickfile [message #15915] |
Thu, 17 June 1999 00:00  |
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 #22276 is a reply to message #15915] |
Fri, 03 November 2000 06:15   |
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 #24817 is a reply to message #15915] |
Thu, 19 April 2001 09:18   |
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  |
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.
|
|
|