PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD20/21/22] Button Function
[WD20/21/22] Button Function
Iniciado por guest, 28,jul. 2017 11:20 - 4 respuestas
Publicado el 28,julio 2017 - 11:20
Hi

I have a question about a button function.

I use the functions "left button down" and "left button up" on a button control.
Now I want to set the trigger of the button on a hardware button. The functions "left button down" and "left button up" should also work.

With the shortcut function it does not seem to work.

Someone has a lighting idea?

Many greetings
Stefan
Publicado el 28,julio 2017 - 11:40
Hi Stefan

What do you mean by a hardware button? Are you referring to a touch screen?

Cheers
André
Publicado el 28,julio 2017 - 12:09
I mean a Hardware Button on my PC Keyboard. For eg. F1 or so.
Publicado el 28,julio 2017 - 12:51
You can define one event at the window level (control or what ever you need) to trap the left button down and another to trap the left button up
In the code of your procedure check if the key pressed was F1 and do what you want.

https://doc.windev.com/en-US/…
https://doc.windev.com/en-US/…
Publicado el 28,julio 2017 - 13:55
hi paulo,

it works well. thanks a lot an have a nice day

stefan