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

Home » Public Forums » archive » Re: dialog_pickfile return question..
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: dialog_pickfile return question.. [message #54316 is a reply to message #54315] Wed, 06 June 2007 09:08 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
ryanselk@gmail.com writes:

> 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'.

You have several problems, but here is a quick and dirty job
that at least solves this one:

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)
if filepicked eq "" then return
print, "File picked"
print, filepicked
filename = file_basename(filepicked)
widget_control, info.wt0, set_value=filename
fp = ptr_new(filepicked)
END


END


PRO test, value

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

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

widget_control, main, /realize
info = {wt0:wt0}
widget_control, main, set_uvalue=info
xmanager, 'test', main

END


Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: scaling idlGrAxis ticks?
Next Topic: How to use backing store while using object graphics?

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

Current Time: Fri Oct 10 03:05:26 PDT 2025

Total time taken to generate the page: 0.16277 seconds