FSC_FILESELECT entry field [message #40071] |
Fri, 09 July 2004 13:33 |
Wayne Landsman
Messages: 117 Registered: January 1997
|
Senior Member |
|
|
I am using David Fanning's FSC_FILESELECT
(http://www.dfanning.com/programs/fsc_fileselect.pro ) as part of an
image display widget (so every time a new file name is entered, the file
is read and the image display updated). It works fine so long as
one uses the BROWSE button to select a file. But if the directory or
file name is entered manually, then an event is triggered with every
keystroke (e.g. each letter of a directory name), whereas I would only
like an event to be triggered after the user hits [RETURN]. I
suspect that this is a problem in my programming rather than a property
of FSC_FILESELECT since it doesn't appear to occur in the example
included with FSC_FILESELECT.
Any ideas on what I might be doing wrong to cause this behavior? My
call to fsc_fileselect is like this
file = fsc_fileselect(control_base, event_pro='imv_filename',$
/mustexist, filter = '*.fits', /read )
where the program imv_filename reads the file and displays the image.
Thanks, --Wayne Landsman
P.S. I am widget programming for the first time in 10 years so I may not
yet be able to properly phrase the question...
|
|
|