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

Home » Public Forums » archive » dialog_pickfile return question..
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
dialog_pickfile return question.. [message #54317] Wed, 06 June 2007 08:44
ryanselk is currently offline  ryanselk
Messages: 16
Registered: May 2007
Junior Member
How would I go about getting the path choosen from Dialog Pickfile and
then having that path appear in a pre-existing widget_text? I have
attempted using a pointer but I could not get it to work, as the
widget_text doesn't 'update'.

Here is my code, if anyone could help it would be fantastic!

PRO test_event, ev
widget_control, ev.id, get_value=value
widget_control, ev.top, get_uvalue=info


if value eq '...' then begin
filepicked = DIALOG_PICKFILE (/READ)
print, "File picked"
print, filepicked
fp = ptr_new(filepicked)
END


END


PRO test, value

main = widget_base (title='PRO', MBAR=bar, /row)
wt0 = WIDGET_TEXT(main, XSIZE=15, uvalue='Filename', /ALL_EVENTS, /
EDITABLE)

findfiles = widget_button (main, value='...')

widget_control, main, /realize
widget_control, main, set_uvalue=info
xmanager, 'experiment', main

END




Thanks,
Ryan
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: warp image
Next Topic: adding sparse arrays

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

Current Time: Wed Oct 08 18:39:07 PDT 2025

Total time taken to generate the page: 0.00532 seconds