|
[Date Index]
[Thread Index]
[Author Index]
Re: FileNameSetter button return state
- To: mathgroup at smc.vnet.net
- Subject: [mg84328] Re: FileNameSetter button return state
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Wed, 19 Dec 2007 04:15:28 -0500 (EST)
- References: <fk55rt$141$1@smc.vnet.net> <fk7424$6j5$1@smc.vnet.net> <fk87r6$4cv$1@smc.vnet.net>
Hm,
this will not work and you will never find it out ..
Regards
Jens
Steve Luttrell wrote:
> Suppose that the file selection dialog starts up with a valid filename (e.g.
> the filename that you had used on a previous use of this dialog), but then
> you decide to press the "Cancel" button, how would you tell that it was
> "Cancel" rather than "OK" that you had just pressed?
>
> Stephen Luttrell
> West Malvern, UK
>
> "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de> wrote in message
> news:fk7424$6j5$1 at smc.vnet.net...
>> Hi,
>>
>> and looking whats the value of your filename
>> If you save it, it should be a valid filename
>> otherwise the value is unchanged ...
>>
>> Regards
>> Jens
>>
>>
>> Steve Luttrell wrote:
>>> I want to use FileNameSetter to create a button which behaves in the
>>> expected way for implementing a Save As... functionality.
>>>
>>> So I did this
>>>
>>> FileNameSetter[Dynamic[filename], "Save", Appearance -> "Save File..."]
>>>
>>> This is fine, except that I can't find any way to determine whether the
>>> "OK"
>>> or "Cancel" button is used to exit the file dialog box. It is not
>>> sufficient
>>> to determine if the value of filename changes, because if you leave
>>> filename
>>> unchanged and use the "OK" button to exit the dialog then this appears to
>>> be
>>> indistinguishable from using the "Cancel" button.
>>>
>>> I can't find anything in the documentation about how to do this. I tried
>>> to
>>> use the {fstart,f,fend} functionality of Dynamic, but this caused
>>> FileNameSetter to break.
>>>
>>> Stephen Luttrell
>>> West Malvern, UK
>>>
>>>
>
>
Prev by Date:
Re: Timing and Pi
Next by Date:
Re: FileNameSetter button return state
Previous by thread:
Re: FileNameSetter button return state
Next by thread:
Re: FileNameSetter button return state
|