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

Home » Public Forums » archive » Re: widget: open directory
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: widget: open directory [message #25439] Fri, 15 June 2001 10:40 Go to previous message
Liam E. Gumley is currently offline  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/
[Message index]
 
Read Message
Read Message
Previous Topic: widget: open directory
Next Topic: Map point

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

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

Total time taken to generate the page: 0.00426 seconds