[DUG] Touch screen without focus

Ross Levis ross at stationplaylist.com
Sat Jul 6 22:14:20 NZST 2013


I believe OnMouseMove is relevant to the window that has the focus so I
don't see that working.  I could detect a global mouse move by analysing
Windows messages.  But whether that could focus the window before the
automatic focusing occurs, I'm not sure.

 

Ross.

 

From: delphi-bounces at listserver.123.net.nz
[mailto:delphi-bounces at listserver.123.net.nz] On Behalf Of Robo
Sent: Saturday, 6 July 2013 6:21 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Touch screen without focus

 

I don't have Delphi at the moment to try it, but can you use OnMouseMove or
similar to focus the window at current mouse position?

Robo

On Saturday, July 6, 2013, Ross Levis <ross at stationplaylist.com> wrote:
> I don't have a touch screen here but my app has a couple of windows that
were created with touch screens in mind.  Some of my users have touch
screens to activate buttons to play pre-defined audio files.
>
>  
>
> A user today mentioned that when the 2 windows are on the screen, if a
button is touched (or tapped as they are saying these days) on the window
that doesn't have the focus, only the window is given focus and the button
doesn't fire.  It requires touching twice to fire.  This is not the case
with a mouse.
>
>  
>
> Is there a simple solution?
>
>  
>
> Cheers,
>
> Ross. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20130706/d9ed0f1c/attachment.html 


More information about the Delphi mailing list