[fpc-pascal] WinCE simulate touchscreen click

Vasil vasilfantomas at nm.ru
Mon Sep 15 21:29:05 CEST 2008


Hello, Paul

Sunday, September 14, 2008, 1:07:00 PM, you wrote:

> I'm trying to simulate a click on the screen.

> I thought I could use mouse_event, but when I call mouse_event from a button,
> the button begins to flip (black-white-black...)

> Anyone knows how ?

> Paul

If I understood you right, you are trying to call mouse_event from within your
button's click handler function. It makes OS generate the WM_xBUTTONDOWN message
and post it to the current thread's message queue, then mouse_event is called
again and so on.

-- 
Best regards
Vasil




More information about the fpc-pascal mailing list