Chau Chee Yang
Chau Chee Yang

Reputation: 19610

How to disable wait cursor using MessageDlg

In Windows 10, when I execute

MessageDlg('Hello', mtInformation, [mbOK], 0);

I can notice the cursor switch to hour glass in a flash while. I understand this is due the a flag UseLatestCommonDialogs to control the runtime using TTaskDialog. Is that possible to disable the hour glass cursor flashing by not touching UseLatestCommonDialogs?

Upvotes: 1

Views: 327

Answers (1)

Muminjon A.
Muminjon A.

Reputation: 81

Maybe you can use the ShowCursor(False/True) function. This function is tied to Winapi.Windows and controls the cursor.

I assume you should walk through this example about hiding or changing the mouse cursor system-wide: https://flixengineering.com/archives/484

Upvotes: 1

Related Questions