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

Home » Public Forums » archive » problem with the widget filesel
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
problem with the widget filesel [message #45005] Tue, 09 August 2005 06:18 Go to next message
rlayberry is currently offline  rlayberry
Messages: 33
Registered: November 2004
Member
Hi Please help...

I am using the widget filesel in order to select files to open. the
example in the help only allows you to pick a single file. i want to
pick multiple files. when i click on multiple files, however, the
event handler only picks the first which is selected...how do I return
all those files which are selected in the event handler?

thanks in advance

russ
Re: problem with the widget filesel [message #45135 is a reply to message #45005] Wed, 10 August 2005 12:38 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
rlayberry@hotmail.com writes:

> I am using the widget filesel in order to select files to open. the
> example in the help only allows you to pick a single file. i want to
> pick multiple files. when i click on multiple files, however, the
> event handler only picks the first which is selected...how do I return
> all those files which are selected in the event handler?

As pointed out in the on-line help, the event structure
only contains the first of the multiple selected files in
the VALUE field. If you want *all* of the selected files, you
have to use the GET_VALUE keyword to get them:

Widget_Control, event.id, Get_Value=allSelectedFiles

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: problem with the widget filesel [message #45141 is a reply to message #45005] Tue, 09 August 2005 23:48 Go to previous message
vijay.kannoju is currently offline  vijay.kannoju
Messages: 3
Registered: August 2005
Junior Member
Hi Russ,

If u r problem is only select multiple files, then use
DIALOG_PICKFILE function with MULTIPLE_FILES keyword set to 1 (
/MULTIPLE_FILES ), then it allows u to select multiple files and
returns an array of string, which is a string array of all file
names.Then u can pass this variable to event procedures.

Cheers,
Vijay.K
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Como unir la interfaz garfica con los procedimientos
Next Topic: new online help in idl 6.2

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

Current Time: Fri Oct 10 16:51:33 PDT 2025

Total time taken to generate the page: 1.04015 seconds