PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Auto-Repeat of Button Control
Auto-Repeat of Button Control
Iniciado por guest, 23,sep. 2016 10:26 - 3 respuestas
Publicado el 23,septiembre 2016 - 10:26
Hi,

is there a way to tell a button to auto-repeat when the left mouse-button is still down? Is there a way to influence the repetition rate?
Publicado el 23,septiembre 2016 - 11:50
Hello Guenter,

Just an idea. In the left click method: make a call to a procedure which recursively calls itself by testing the left moude down property.
Publicado el 23,septiembre 2016 - 13:28
Hi Guenter

I was going to tell you about the same thing as Frans, EXCEPT for the recursive part that would crash your application quite rapidly. So, on left click, do what you need and start a timer
In the timer check if still down and on the button and redo.

Best regards
Publicado el 23,septiembre 2016 - 16:20
Hi Fabrice & Frans,
thank you all! My son told me about the same but I thought that in v21 there surely should be something more straightforward than it used to be in version 5.5, a simple click of a checkbox or something like that ... OK, anyway, it is like it is. Thanks!