Frozen iteration count label on window lost focus

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
bluebird
Posts: 119
Joined: Wed Sep 28, 2016 3:55 am
Has thanked: 24 times
Been thanked: 5 times

Frozen iteration count label on window lost focus

Post by bluebird » Fri Oct 06, 2017 6:13 pm

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


bluebird
Posts: 119
Joined: Wed Sep 28, 2016 3:55 am
Has thanked: 24 times
Been thanked: 5 times

Post by bluebird » Sat Oct 07, 2017 4:10 am

Any examples Mr Mol?

User avatar
mol
Posts: 2874
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 133 times
Been thanked: 66 times
Contact:

Post by mol » Sat Oct 07, 2017 6:04 am

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

bluebird
Posts: 119
Joined: Wed Sep 28, 2016 3:55 am
Has thanked: 24 times
Been thanked: 5 times

Post by bluebird » Sat Oct 07, 2017 7:09 pm

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

Post Reply