A
A
Alexander Nikolaevich2016-11-24 22:57:11
Delphi
Alexander Nikolaevich, 2016-11-24 22:57:11

How to display the completion of the process?

There is a program that translates words using Yandex translator.
I tried to make it show how many words were translated during the translation process, but if you use label.caption, it only shows when all the words are translated, and if memo.lines.add then the numbers quickly disappear.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2016-11-24
@User258

After changing Label.Caption, add a call to Application.ProcessMessages() to redraw the GUI.
However, do not abuse it - updating more than a couple of times per second is pointless - a person will not have time to read, and you will take up computing resources by redrawing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question