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

Home » Public Forums » archive » Re: droplist items
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: droplist items [message #10181] Fri, 31 October 1997 00:00 Go to previous message
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
Peter Mason wrote:
>
> On Thu, 30 Oct 1997, Matthew Hanson wrote:
>> Does anyone know how I can have a droplist box display filenames that
>> are in a given directory? An openfile dialog is not appropiate because
>> the data files will always be in the same directory and i want it to be
>> a simple interface where the user can choose which file to use. New
>> data files may be added so when the program starts up i want it to check
>> this directory and display the filenames.
>

I would suggest using a scrollable list widget. You can easily use
the event structure to determine which item is selected. You can
also implement double-clicking.

If you want to see an example of this, you can look at my LHELP
program that allows the user to view all the *.doc (and *.pro)
files within IDL's !PATH:

ftp://bial8.ucsd.edu pub/software/idl/share

It will show you how to create and fill the list widget, and how
to process the events.

Dave
--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Linear Predictors in IDL?
Next Topic: Re: Preserving Variables

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

Current Time: Wed Oct 08 11:27:26 PDT 2025

Total time taken to generate the page: 0.00433 seconds