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

Home » Public Forums » archive » Re: multiple filters take 2
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: multiple filters take 2 [message #23276] Thu, 18 January 2001 10:25
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Rochelle Hatton (nrh@imag.wsahs.nsw.gov.au) writes:

> A few days ago I asked about the possibility of using multiple file
> filters with a file selection program. After much fiddling with an
> old program, I decided to have a go at writing a new version that uses
> DIALOG_PICKFILE.
> My question still remains - the help on DIALOG_PICKFILE seems make no
> sense - is it a Windows only option?
> I can't work out from the help whether it is possible on Unix, or is
> it a feature request for RSI?
> Alternatively, has anyone written their own version to allow for more
> than one filter?

I have a program, named SELECTIMAGE, that I wrote for my own
amusement. I didn't really intend for it to become a public
program. Rather, I needed it for some work I was doing for
a client. The client and I are *always* working on PCs, so
I felt free to use some techniques that I know have given
me some headaches on UNIX machines in the past.

For example, I have a little thumbnail image in the program
which allows me to preview the image before I actually
select it. On windows I can resize that draw widget any
which way, and things still don't look good. I'm not sure
what happens on other operating systems. Similarly with
a label widget, which is continually displaying different
information about the file you are browsing currently.

I wouldn't mention it at all, except that it *does* have
the ability to read images of different types by means
of a filter button. Although you can only use one filter
at a time. The program supports any know image format
that has a corresponding QUERY_**** routine associated
with it.

I put it on my web page today, thinking that I might
as well find out what is wrong with it and fix it if
I have to. :-(

You can find a picture and description of the program
here:

http://www.dfanning.com/documents/programs.html#SELECTIMAGE

You will need these three files to run it:

http://www.dfaning.com/programs/selectimage.pro
http://www.dfaning.com/programs/fsc_fileselect.pro
http://www.dfaning.com/programs/tvimage.pro

To read JPEG files, for example:

IDL> image = SelectImage(/jpeg)

Note, that what I had in mind was a more aesthetic (and
more intuitive) version of RSI's DIALOG_READ_IMAGE. :-)

As I say, I will not be surprised to hear about problems
with this. But if you report them, I try to fix them.

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
[Message index]
 
Read Message
Previous Topic: Re: Time conversion
Next Topic: Speaking of .wav files...

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

Current Time: Sat Oct 11 09:29:20 PDT 2025

Total time taken to generate the page: 0.72362 seconds