in Mouse Programming ::
Unfortunately for your Delphi application users, the "move pointer to the default button in dialog boxes" feature is not handled by your Delphi application. The mouse pointer will not jump for Delphi dialog boxes like InputBox, MessageBox, ShowMessage or any custom made modal form / window. Here's a quick fix.
Unfortunately for your Delphi application users, the "move pointer to the default button in dialog boxes" feature is not handled by your Delphi application. The mouse pointer will not jump for Delphi dialog boxes like InputBox, MessageBox, ShowMessage or any custom made modal form / window. Here's a quick fix.
Read the full article to learn how to Correct the Snap-To Feature: Move Mouse Over the Default Dialog/Modal Window Button.
Related:


Please, PLEASE, don’t.
I tried this out in my Delphi XE Starter edition project and learned it make the cursor jump to the default button. Seems the conditions in the last “if” statement (if (fsModal in…) are never met so the 4 following lines are never executed. Outside of Delphi, my Windows Vista does enable the behavior so I don’t know what the problem is. Too bad, but I would have liked to implement this.
Too many users are trigger happy. They click on anything that accepts a mouse click without a second thought. Should the program design call for a conscious decision by a user, consider the merits, or absence of merits, before programmatically placing the mouse cursor over the default button.
@Leonardo, SeaCay: the code is here to only obey the Windows rule that the user might set if they prefer this way of working with dialog boxes – it will not force the behavior if the option is not set in Windows.