PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → static control not updating in real time
static control not updating in real time
Débuté par Mark Gibbs, 11 aoû. 2020 14:01 - 2 réponses
Posté le 11 août 2020 - 14:01
Hi
I've just installed Windev Mobile 25 in order to migrate one of our WebDev applications.

I've immediately hit a snag.

As a test I have a single window - WIN_Main
In that window are two controls - a button BTN_NoName1 and a static STC_NoName1

The button just has 4 lines of code:
x is int
FOR x = 1 TO 100000
STC_NoName1 = x
END

If I test this in the simulator (Galaxy Tab A 10.") it works fine.
If I test it on the device then when I tab the button nothing happens until x reaches 100000 then the static is updated.

It also works normally in Windev 25.
Could someone tell me what I'm doing wrong?

Thanks
Mark
Posté le 11 août 2020 - 16:18
actually, your code works perfectly, as coded...

If you want a refresh during your loop, you need to add a multitaskredraw instruction in the loop
Posté le 11 août 2020 - 16:46
To borrow a quote:

"You sir are a steely eyed missileman"

Thanks
All working.