Page 1 of 1

Frozen iteration count label on window lost focus

Posted: Fri Oct 06, 2017 6:13 pm
by bluebird
Dear mentors

I have a two label counter on one of my applications that shows the current iteration alongside of the label showing
the final completion count.

ex, LABLE_CURRENT <21> of LABLE_FINAL <55>

If I go outside of the containing window the update label value ... <21> freezes, but the iterations still progress invisibly

Is there a way to use ON FOCUS (or anything else) so that when I click back on the window, the counter wakes up?

Thanks

Re: Frozen iteration count label on window lost focus

Posted: Fri Oct 06, 2017 9:32 pm
by mol
do events should help, I think

Re: Frozen iteration count label on window lost focus

Posted: Sat Oct 07, 2017 4:10 am
by bluebird
Any examples Mr Mol?

Re: Frozen iteration count label on window lost focus

Posted: Sat Oct 07, 2017 6:04 am
by mol
you should insert line in your iteration code

Code: Select all

do events
f.e.

Code: Select all

for i:=1 to 100
  win2.form21.value := strzero(i,3)
  do events
next i

Re: Frozen iteration count label on window lost focus

Posted: Sat Oct 07, 2017 7:09 pm
by bluebird
Thanks Marek

It works,.... but you already knew that :)

The HMG Reference site does not tell you much so I don't know HOW it works , just that it does