In my application I have used the OnMouseDown
and OnMouseUp
to create a windows desktop style selection box. OnMouseDown
I create a semi transparent blue window and get rid of it in the OnMouseUp
.
The result is a nice transparent box to indicate the selection area in a grid control.
The problem is that on a touch screen the mouse down and up events do not get called when you press and drag like you would with a mouse. The up/down events are called if you simply press in one spot but not if you touch and drag.
My current thinking is to use WM_TOUCH
messages and capture the touch and drag myself but I am hoping there is a better way or something I have missed. Any suggestions?
(This is a VCL app under XE5)