alerts

Peter Brigham MD pmbrig at gmail.com
Mon Nov 8 10:07:35 EST 2010


In my case the save takes at most 2 seconds. Progress bar probably not  
needed. Also, it's impossible (AFAIK) to tell in advance how long a  
save will take, to the only progress bar possible for this situation  
would be a barber-pole type bar.

-- Peter

Peter M. Brigham
pmbrig at gmail.com
http://home.comcast.net/~pmbrig


On Nov 8, 2010, at 9:51 AM, william humphrey wrote:

> Except it should have a progress bar.
>
> On Mon, Nov 8, 2010 at 8:47 AM, Peter Brigham MD <pmbrig at gmail.com>  
> wrote:
>
>> Here's the way I do it. I show a small display stack, the idea is  
>> just that
>> it's a billboard to tell the user that the saving is occurring. It  
>> closes
>> after the save is done.
>>
>> on doSave
>>  modeless stack "savingAlert"
>>  wait 10 millisecs
>>  save stack "pdData"
>>  set the lastSaved of stack "pdData" to the seconds
>>  close stack "savingAlert"
>>  go stack "pdData"
>> end doSave
>>
>> -- Peter
>>
>> Peter M. Brigham
>> pmbrig at gmail.com
>> http://home.comcast.net/~pmbrig
>>
>>
>>
>>
>> On Nov 8, 2010, at 1:24 AM, Mark Smith wrote:
>>
>>
>>> Hi Craig,
>>>
>>> Forget the part about not knowing when a save is done... I'm a  
>>> little
>>> tired
>>> at the moment but did figure it out.
>>>
>>> I have code that says:
>>>
>>> on mouseUp
>>> save this stack
>>> end mouseUp
>>>
>>> Pretty simple. But there is no visible indication to the user in  
>>> my stack
>>> that anything happened. So what I want to do is:
>>>
>>> on mouseUp
>>> -- show a dialog saying we're saving now... (sort of like what  
>>> runrev
>>> itself does when you do cmd-S)
>>> save this stack
>>> -- dismiss the dialog
>>> end mouseUp
>>>
>>> BUT, the only dialogs I have found in runrev are ask or answer,  
>>> both of
>>> which require the user to dismiss them. How do you do an  
>>> information only
>>> dialog (or is it an alert?) that does not require user intervention?
>>>
>>> PS which reminds me, is there anyway to see how the IDE itself was
>>> implemented? (i'd go look at the code for the IDE's save command).  
>>> I've
>>> heard or read that it is possible to do that but haven;t  
>>> discovered how.
>>>
>>> Thanks again,
>>>
>>> -- Mark
>>> --
>>> View this message in context:
>>> http://runtime-revolution.278305.n4.nabble.com/alerts-tp3031113p3031553.html
>>> Sent from the Revolution - User mailing list archive at Nabble.com.
>>> _______________________________________________
>>> use-revolution mailing list
>>> use-revolution at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>>
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
>
>
> -- 
> http://www.bluewatermaritime.com
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the Use-livecode mailing list