Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2008-09

WinCE simulate touchscreen click

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Paul

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

Paul

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

Vasil
to Paul: I'm trying to simulate a click on the screen. I thought I could use mouse_event, but when…

Hello, Paul

you wrote 8 lines
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