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 #78891] Tue, 03 January 2012 10:02 Go to previous message
Vincent Sarago is currently offline  Vincent Sarago
Messages: 34
Registered: September 2011
Member
Hi Percy,

Maybe I'm wrong but maybe you can create a new array (list of filename) with the 'filename + the path on the right'.

the use will see directly the filename and can still see the fullpath (using the scroll bar)


after you just have to pass both arrays (normal list and modified list) to the event handler ...

Pro test_idea

uList = dialog_pickfile(/Multiple) ; List of full File Name
if (n_elements(uList) eq 0) then return

; Create a new List " base + ' ' + 'directory'
arrList = strarr(n_elements(uList))
for ii = 0, n_elements(uList) - 1 do $
arrList[ii] = string((file_basename(uList))[ii],(file_dirname(uList))[ii], format='(a,4x,a)')

base = Widget_Base(UNAME = 'widget', TITLE='test')

wlist = widget_list(base, $
UNAME = 'wlist', $
/SENSITIVE, $
YSIZE = n_elements(arrList), $
VALUE = arrList, $
/MULTIPLE)

Widget_Control, /REALIZE, base

End

(Hope this time I'm not wrong :D)

vincent
[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: Wed Oct 08 19:25:33 PDT 2025

Total time taken to generate the page: 0.06597 seconds