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

Home » Public Forums » archive » Re: Dialog box for creating a directory
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: Dialog box for creating a directory [message #23261] Fri, 19 January 2001 06:40 Go to next message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Roy Edgar Hansen (Roy-Edgar.Hansen@ffi.no) writes:

> Does such a thing exist?
>
> I want a dialog box such as dialog_pickfile or FSC_fileselect (from
> David Fanning)
> to pop up during my processing for creating a new directory where all
> the files from
> processing should be stored. It also would be nice if there was the
> possibility to show
> the directory structure... (such as in the above mentioned).

Humm. You must not be using Windows. :-)

I certainly can *create* a new directory or folder from
DIALOG_PICKFILE. But I suspect that is not exactly what
you want to do. You probably want to create it directly
from you program. Having a dialog "pop up" pre-supposes
you are going to allow some initiative and accept
direction from the user. That's often what we *say*
we want, while writing programs that specifically
disallow it. :-)

> I know this is not far from a number of the examples at
> www.dfanning.com,
> but if someone has done exactly this (or knows how to) already....

If you want to create a directory (as opposed to having
the user create a directory), then in IDL 5.4 you can
use the FILE_MKDIR procedure. On earlier versions of
IDL I think you will have to spawn an operating system
command to do it.

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 box for creating a directory [message #23415 is a reply to message #23261] Mon, 22 January 2001 12:53 Go to previous message
Roy E Hansen is currently offline  Roy E Hansen
Messages: 2
Registered: January 2001
Junior Member
>
> Humm. You must not be using Windows. :-)
>
> I certainly can *create* a new directory or folder from
> DIALOG_PICKFILE. But I suspect that is not exactly what
> you want to do. You probably want to create it directly
> from you program. Having a dialog "pop up" pre-supposes
> you are going to allow some initiative and accept
> direction from the user. That's often what we *say*
> we want, while writing programs that specifically
> disallow it. :-)

Well, I use Windows and I know "the user" can create directories
with dialog_pickfile. However, "the user" should only create one
directory, not interact with files at all. So the "File names" and
"Files of type" fields are of no use to me, and especially not if
"the user" enters something there.

> If you want to create a directory (as opposed to having
> the user create a directory), then in IDL 5.4 you can
> use the FILE_MKDIR procedure. On earlier versions of
> IDL I think you will have to spawn an operating system
> command to do it.

That is probably what I end up doing. I'll automaticly choose
directory names and create directories.

BTW, "the user" and I is the same guy.

Thanks for the help.

-Roy
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: MPEG movies & frame rate
Next Topic: Dialog box for creating a directory

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

Current Time: Wed Oct 08 19:21:04 PDT 2025

Total time taken to generate the page: 0.00528 seconds