Simple C++ Builder problem

Hi, I am working in C++ Builder Version 4. I am trying to make a label visible at run time but it is before a big loop (for statement) and the program will not display the label as visible until it is finished the loop.
anyone have any ideas why this is happening and any idea how to fix it
Cheers...

LVL 2
BerAsked:
Who is Participating?
 
DrDelphiConnect With a Mentor Commented:
put Application->ProcessMessages() inside your loop.


Good luck!!
0
 
jonninCommented:
windows will not update the window unless forced or idle.
force an update/redraw etc before the loop. In the loop will really slow you down, but if the loop has a very long execution time, try refresh every n iterations or something.  I don't know off the top of my head what borland's refesh is...

0
 
BerAuthor Commented:
Dr Delphi,
     Worked Perfectly

Cheers...
Ber...
0
 
DrDelphiCommented:
Cheers.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.