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 #24477] Wed, 04 April 2001 10:41 Go to next message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
Is it a Mac thing that the FILE keyword is ignored in DIALOG_PICKFILE?

temp = dialog_pickfile(file='first_guess.txt')

results in "all files" mask and no initial selection. Of course,
"first_guess.txt" exists in the directory of interest.

Pavel
Re: dialog_pickfile [message #24574 is a reply to message #24477] Wed, 04 April 2001 12:17 Go to previous messageGo to next message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Pavel A. Romashkin (pavel.romashkin@noaa.gov) writes:

> Is it a Mac thing that the FILE keyword is ignored in DIALOG_PICKFILE?
>
> temp = dialog_pickfile(file='first_guess.txt')
>
> results in "all files" mask and no initial selection. Of course,
> "first_guess.txt" exists in the directory of interest.

Must be. I've never noticed it not working anywhere else,
even VMS. :-)

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 #24654 is a reply to message #24477] Mon, 09 April 2001 15:29 Go to previous message
thierry[1] is currently offline  thierry[1]
Messages: 5
Registered: March 2001
Junior Member
In article <3ACB5CAB.C984FA8E@noaa.gov>, "Pavel A. Romashkin"
<pavel.romashkin@noaa.gov> wrote:

> Is it a Mac thing that the FILE keyword is ignored in DIALOG_PICKFILE?
>
> temp = dialog_pickfile(file='first_guess.txt')
>
> results in "all files" mask and no initial selection. Of course,
> "first_guess.txt" exists in the directory of interest.
>
> Pavel

Hi Pavel,

It is indeed a Mac thing that the file keyword is ignored in
dialog_pickfile when /write is not specified. This is because the standard
Mac open dialog does not have an actual field for type ahead searching
like the other platforms (and Mac OS X for that matter).


If you want to limit the display to only that file use the filter keyword:

temp = dialog_pickfile(filter='first_guess.txt')

this will set the value of the filter to first_guess.txt and will hide all
other files.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Problem with ".cdf" files on Windows
Next Topic: IDL and DLL under windows

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

Current Time: Wed Oct 08 09:11:54 PDT 2025

Total time taken to generate the page: 0.00547 seconds