Skip to main content
JADarnell
Inspiring
June 27, 2011
Answered

IDCS5 Win - changing mouse cursor

  • June 27, 2011
  • 1 reply
  • 608 views

At times I have code that processes a lot of data in ways that are not amenable to progress bars (for example, saving a single, large file to disk).  During those times I would like to change the cursor from its standard arrow to another standard such as an hourglass.  I see lots of general documentation on changing cursors that are specially made, but nothing that describes the process for changing from one standard cursor shape to another.  Nor is there any sample code/snippets that demonstrate the procedure, as far as I could find.  Does anyone have a suggestion where to look or what boss to use to change a mouse cursor from one icon to another?

TIA!

John

This topic has been closed for replies.
Correct answer Dirk Becker

Create a local "AcquireWaitCursor" variable.

The cursor will stay around until that variable runs out of scope.

See AcquireModalCursor.h for details and alternatives.

Dirk

1 reply

Dirk BeckerCorrect answer
Legend
June 27, 2011

Create a local "AcquireWaitCursor" variable.

The cursor will stay around until that variable runs out of scope.

See AcquireModalCursor.h for details and alternatives.

Dirk

JADarnell
JADarnellAuthor
Inspiring
June 27, 2011

I took a quick look at the header file and it all seems waay too simple.  Are you sure you're talking InDesign here? (grin).

Thanks Dirk.  This is what I was looking for.

R,

John