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

Home » Public Forums » archive » Re: file selection widget and returning filters
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: file selection widget and returning filters [message #42449] Thu, 10 February 2005 10:52 Go to next message
Rob Dimeo is currently offline  Rob Dimeo
Messages: 17
Registered: November 1999
Junior Member
Thanks David. I'll let you know what I come up with.

Best regards,

Rob
Re: file selection widget and returning filters [message #42452 is a reply to message #42449] Thu, 10 February 2005 07:40 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Rob writes:

> I'm hoping that the answer is not to "roll your own" but (and here
> comes a big run-on sentence)....does anyone know of a file selection
> utility much like DIALOG_PICKFILE that allows the program user to
> specify a filter and then, if the user changes the filter, *remember*
> the new one (so that subsequent file selections start with the new
> filter)? FSC_FILESELECT offers the flexibility of obtaining this info
> from an object reference but it doesn't list the files that match the
> filter like DIALOG_PICKFILE. Nor does CW_FILESEL seem to allow the
> user to change the filter at runtime.

I was thinking about this just the other day. When you get it built,
I'm sure others will be interested in it. :-)

> P.S. By the way I can't even get CW_FILESEL to limit the number of
> files displayed by by setting the FILTER keyword to a string array
> other than "All Files" but that's another story...another posting...

CW_FILESEL is, uh, an "interesting" widget. But not what
I want, either. :-(

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: file selection widget and returning filters [message #42596 is a reply to message #42449] Mon, 14 February 2005 14:05 Go to previous message
Rob Dimeo is currently offline  Rob Dimeo
Messages: 17
Registered: November 1999
Junior Member
For those who are interested, I wrote a file selection utility that
uses tree widgets that does what I specified in my original posting.
In particular it allows you to specify a file type filter with an input
keyword and, if the user changes the filter while the dialog is
displayed, an output keyword will return the updated filter.

You can find the source code, RMD_PICKFILE.PRO, as well as a screen
shot on the following web page under the heading "Miscellaneous
programs":

http://www.ncnr.nist.gov/staff/dimeo/idl_programs.html

Many thanks to David Fanning for providing valuable feedback on the
...ahem...er... aesthetic qualities of my original dialog that *didn't*
use a tree widget :).

Best,

Rob

Rob wrote:
> Thanks David. I'll let you know what I come up with.
>
> Best regards,
>
> Rob
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Reading HDF5 Variable
Next Topic: Mapping the Pacific

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

Current Time: Wed Oct 08 20:01:33 PDT 2025

Total time taken to generate the page: 0.00912 seconds