Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I make the Windows 8 press-and-hold rectangle go away?

If you press and hold a textbox on a touchscreen in Windows 8, a rectangle appears after some time. Here's a picture of it:

picture

This rectangle is supposed to disappear when you release your finger. The context menu will now appear. (See Notepad for example.)

In a Delphi program, however, the rectangle is still there while the context menu is visible. It won't disappear until the menu closes. You can try this with a new VCL app with a TMemo.

How do I solve this?

Delphi still uses pre-Windows 8 UI events (ie. no WM_Pointer), but everything works fine except for this issue.

like image 851
Giel Avatar asked Dec 19 '12 19:12

Giel


1 Answers

The problem goes away if you include toPenTapFeedback in Touch.TabletOptions.

like image 102
Giel Avatar answered Oct 22 '22 04:10

Giel