Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: Dialog_pick...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 10 Topic 5661 of 5734
Post > Topic >>

Re: Dialog_pickfile problem

by clivecook59@[EMAIL PROTECTED] Apr 22, 2008 at 07:29 AM

On Apr 22, 10:23 am, Vince Hradil <hrad...@[EMAIL PROTECTED]
> wrote:
> On Apr 22, 9:20 am, clivecoo...@[EMAIL PROTECTED]
 wrote:
>
>
>
> > On Apr 22, 10:19 am, Vince Hradil <hrad...@[EMAIL PROTECTED]
> wrote:
>
> > > On Apr 22, 9:12 am, clivecoo...@[EMAIL PROTECTED]
 wrote:
>
> > > > Hi,
>
> > > > I am using Dialog_pickfile to write a jpeg, using file='a string i
> > > > insert here'. My problem is that if i want to change the directory
in
> > > > which dialog_pickfile defaults to  it wipes the string i initially
> > > > inserted. Is there a way i can fix the default filename so that
the
> > > > user can pick a directory to save the jpeg without having to
retype
> > > > the file name back in?
>
> > > > filename = Dialog_Pickfile(/Write, File=uname
> > > > +'-'+info.file_name,DEFAULT_EXTENSION='jpeg')
> > > > IF filename NE '' THEN Write_JPEG, filename, snapshot, True=1
>
> > > > many thanks,
>
> > > > Clive
>
> > > Seems to me that you don't want to give the user a choice to make
the
> > > filename.  So, why not just have them choose a directory?
>
> > > dirname = Dialog_Pickfile(/Directory)
> > > if strlen(dirname) gt 0 then File=dirname+path_sep()+uname
> > > +'-'+info.file_name+'.jpeg'
>
> > Thats a good suggestion, however i do not want to remove the
> > possibility of the user to edit the filename.
>
> > thanks
>
> > Clive
>
> How about using filter=uname+'-'+info.file_name+'.jpeg' instead of
> file?


I don't think that works as when you set filter it only displays files
with that name. In this case the file is yet to be created.




 10 Posts in Topic:
Dialog_pickfile problem
clivecook59@[EMAIL PROTEC  2008-04-22 07:12:12 
Re: Dialog_pickfile problem
Vince Hradil <hradilv@  2008-04-22 07:19:05 
Re: Dialog_pickfile problem
clivecook59@[EMAIL PROTEC  2008-04-22 07:20:52 
Re: Dialog_pickfile problem
Vince Hradil <hradilv@  2008-04-22 07:23:13 
Re: Dialog_pickfile problem
clivecook59@[EMAIL PROTEC  2008-04-22 07:29:05 
Re: Dialog_pickfile problem
David Fanning <news@[E  2008-04-22 08:31:28 
Re: Dialog_pickfile problem
clivecook59@[EMAIL PROTEC  2008-04-22 07:33:35 
Re: Dialog_pickfile problem
"marika" <ma  2008-04-22 21:01:09 
Re: Dialog_pickfile problem
Vince Hradil <hradilv@  2008-04-22 07:36:39 
Re: Dialog_pickfile problem
Vince Hradil <hradilv@  2008-04-22 07:38:20 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri May 16 23:01:42 CDT 2008.