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

#include <AcquireModalCursor.h>

Inheritance diagram for AcquireDelayedBusyCursor:
BaseAcquireModalCursor

Public Member Functions

 AcquireDelayedBusyCursor ()
 
virtual ~AcquireDelayedBusyCursor ()
 
virtual void ChangeCursor (const CursorSpec &newspec)
 
void Animate ()
 

Protected Attributes

ModalCursorTicket fTicket
 
ICursorMgrfCursorMgr
 

Detailed Description

Helper object used to acquire, manipulate, and release a automatic busy/wait cursor.

AcquireDelayedBusyCursor should be used for situations where the amount of time to be spent is unknown, and the desired

effect is to change the cursor to an animated busy cursor only after a predetermined amount of time elapses. Otherwise use

AcquireWaitCursor.



This helper can be either stack or heap allocated depending on how far flung the two ends of the cursor wait period are. 

If it all happens within the body of a single function or single function call chain, then stack based is preferred. 

If the start and end are in separate functions, then heap based should be used.

Constructor & Destructor Documentation

AcquireDelayedBusyCursor::AcquireDelayedBusyCursor ()

Installs the busy cursor after a finite delay.

virtual AcquireDelayedBusyCursor::~AcquireDelayedBusyCursor ()
virtual

Removes the busy cursor, and restores the previous cursor.

Member Function Documentation

void AcquireDelayedBusyCursor::Animate ()

Call periodcally to ensure that the cursor continues to spin.

virtual void AcquireDelayedBusyCursor::ChangeCursor (const CursorSpecnewspec)
virtual

Default implementation simply calls Animate

Implements BaseAcquireModalCursor.