Note that there are some explanatory texts on larger screens.

plurals
  1. PODelphi: Screen.Cursor not working and can't figure out Windows.SetCursor(crHourGlass)
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COWith no more detail in your question, what I can say is: If it seems to immediately change back to crDefault, maybe the code inside try clause is changing it back (or calling some code that makes that change) or maybe it uses some kind of asynchronous process, for example start another thread who in fact is the one that process the thing. So the program executes the finally part and changes the cursor back to crDefault _almost_ immediately.
      singulars
    2. COJachguate> No what seems to be happening is that setting the cursor only has an effect when the application has proper focus - but any processes that happen outside the application - such as calling a DLL process or asking a scanner to scan (Note: I am scanning *without* any pop-up form that shows the scanner's progress etc etc) - then Windows restores the default cursor. So I think I need a way to set the cursor IN WINDOWS for all applications until my process is finished.
      singulars
    3. CO"So I think I need a way to set the cursor IN WINDOWS for all applications until my process is finished" - That's a pretty bizarre requirement. It's only *your* application that's busy. why would you want other applications to appear to be busy when they're not?
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload