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

Home » Public Forums » archive » dialog_pickfile problem
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 problem [message #59941 is a reply to message #10235] Tue, 22 April 2008 07:20 Go to previous messageGo to previous message
clivecook59 is currently offline  clivecook59
Messages: 26
Registered: November 2005
Junior Member
On Apr 22, 10:19 am, Vince Hradil <hrad...@yahoo.com> wrote:
> On Apr 22, 9:12 am, clivecoo...@gmail.com 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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Saving Workbench Layout?
Next Topic: Re: Atmospheric correction

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

Current Time: Sat Oct 11 15:27:13 PDT 2025

Total time taken to generate the page: 1.51820 seconds