[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: widget function returns an array
> I wish to make a widget that will allow me to select multiple
> sub-directories from a parent directory and return a string array of
> those sub-directories when I click a 'done' button. I wish to return
> the array to a parent procedure, and have the widget destroyed. Can
> this be done?
Oh yes. Look into widget_list,/MULTIPLE along with
widget_info(wid,/LIST_SELECT). Finding subdirectories in a platform independent
way is somewhat troublesome in IDL, and usually requires various
platform-specific flags to findfile() being employed. If you don't care about
platform independence, your job will be easier.
J.D. Smith |*| WORK: (607) 255-5842
Cornell University Dept. of Astronomy |*| (607) 255-6263
304 Space Sciences Bldg. |*| FAX: (607) 255-5875
Ithaca, NY 14853 |*|