InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
AutoBusyCursor Class Reference

#include <AutoBusyCursor.h>

Public Member Functions

 AutoBusyCursor (bool16 bEnabled)
 
 ~AutoBusyCursor ()
 

Detailed Description

A stack-based approach to enabling/enabling busy cursor support during command and sequence processing. Typically used to turn off busy cursor in command processor during tracking, then restore after tracking is finished. Base class CTracker does this automatically in BeginTracking and EndTracking, which covers most, if not all, tracker clients. Trackers can then freely manipulate cursor, even during open command sequences.

See Also
CmdUtils.h
CTracker.h

Constructor & Destructor Documentation

AutoBusyCursor::AutoBusyCursor (bool16 bEnabled)
inline

Stack-based object constructor to manage busy cursor during command/sequence processing. Typically managed automatically, but this object allows finer control. Restores previous state in destructor.

Parameters
bEnabledis the desired state of the busy cursor
AutoBusyCursor::~AutoBusyCursor ()
inline

Restore busy cursor to previous state.