NextPrevUpTopContentsIndex

with-busy-interface

Macro
Summary

Displays an alternate cursor during the execution of some code.

Package

capi

Signature

with-busy-interface ( pane &key cursor delay) &body body

Description

The macro with-busy-interface switches the cursor of the interface containing pane to be the busy cursor, evaluates body , and then restores the cursor. This is useful when a piece of code may take significant time to run, and visual feedback should be provided.

cursor specifies the cursor to use while body is running. The default value is :busy . For other allowed values, see simple-pane.

delay should be a provides a delay before the cursor is switched, so if body runs in less than delay seconds, then the cursor is not switched at all. This is usually more useful behavior than switching the cursor immediately. The default value of delay is 0.5.

with-busy-interface must be called in the process of the interface containing pane .

See also

simple-pane


LispWorks CAPI Reference Manual - 17 Mar 2008

NextPrevUpTopContentsIndex