Re: widget: open directory [message #25439] |
Fri, 15 June 2001 10:40 |
Liam E. Gumley
Messages: 378 Registered: January 2000
|
Senior Member |
|
|
Ralf Schaa wrote:
> i'm a newbie in idl and i have the following problem: (the first of a
> lot...)
>
> in a widget, i like to have a pulldown-menu, which opens the workdirectory
> and let me browse in the filesystem and let me select a file to do 'things'
> with...(on unix)
>
> any suggestions?
Create a button with the label 'Browse...'
When the user clicks on the button, execute the following command:
result = dialog_pickfile()
If the returned value is not the null string (''), then a valid filename
was selected. See the online help for the keywords supported by
dialog_pickfile.
There is also a file selector compound widget (cw_filesel) that you
could use, but I prefer dialog_pickfile.
Cheers,
Liam.
http://cimss.ssec.wisc.edu/~gumley/
|
|
|
Re: widget: open directory [message #25440 is a reply to message #25439] |
Fri, 15 June 2001 10:39  |
btt
Messages: 345 Registered: December 2000
|
Senior Member |
|
|
Hi,
You should try the DIALOG_PICKFILE() fucntion.
Ben
Ralf Schaa wrote:
>
> hi there,
>
> i'm a newbie in idl and i have the following problem: (the first of a
> lot...)
>
> in a widget, i like to have a pulldown-menu, which opens the workdirectory
> and let me browse in the filesystem and let me select a file to do 'things'
> with...(on unix)
>
> any suggestions?
>
> thanx
> ralf
--
Ben Tupper
Bigelow Laboratory for Ocean Sciences
180 McKown Point Rd.
W. Boothbay Harbor, ME 04575
btupper@bigelow.org
|
|
|