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

Home » Public Forums » archive » Re: Displaying a list of filenames
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: Displaying a list of filenames [message #78896 is a reply to message #78895] Tue, 03 January 2012 07:11 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Percy Pugwash writes:

> I would like to display a list of filenames in an widget application.
> I have so far been unable to find a satisfactory way of doing this,
> since I would like the user to be able to:
>
> 1) Select one or several of the filenames in the list
> 2) View the whole filepath, right-aligned so that the name at the end
> is clear
>
> I can't seem to right-align a list widget, and a text widget won't let
> me select an item in the list in a straightforward way. I think I can
> make it work with a table widget, but that seems to have irritating
> and unnecessary scroll bars.
>
> Does anyone have a solution?

My solution, after years of frustration trying to do just
this, was to retreat to a smarter version of Dialog_Pickfile,
which can remember the directory (and file, if I want) that
I previously selected. It's made my life easier and I no
longer wake up in terror at night thinking about table widgets. :-)

http://www.idlcoyote.com/idldoc/cg/cgpickfile.html

Cheers,

David

P.S. Set the MULTIPLE keyword if you want to select
multiple files.



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Displaying a list of filenames
Next Topic: running IDL as a 'sleeping' process

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

Current Time: Sat Oct 11 09:10:52 PDT 2025

Total time taken to generate the page: 0.48371 seconds