[previous] [up] [next]     [index]
Next: gui-utils:get-choice Up: Gui-utils Utilities Previous: gui-utils:cursor-delay

gui-utils:delay-action

Use this function to delay an action for some period of time. It also supports cancelling the action before the time period elapses. For example, if you want to display a watch cursor, but you only want it to appear after 2 seconds and the action may or may not take more than two seconds, use this pattern:

(let ([close-down
       (gui-utils:delay-action 
         2 
         (lambda () .. init watch cursor ...)
         (lambda () .. close watch cursor ...))])

   .. do action ...
   (close-down))



PLT