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
pmb...@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to