 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Gennaro Guest
|
Posted: Tue Dec 09, 2003 6:28 pm Post subject: Updating Static Controls |
|
|
Hi All,
In my program I have a static control that I want to update during a "for"
loop. Unless I use the Update method,
it doesn't seem to change. However, If I put a MessageBox within the loop,
It will change. I thought using
Application->ProcessMessages() might work, but it did not seem to help. With
many static controls on the form
that I want to update, I was just wondering if there was a way to update
them all without using the Update method
for each control.
Thanks in advance,
Gennaro
// SAMPLE snippet
for(xxxxxxx)
{
sprintf(tempbuf,"(Programming Slave1 DSP) ... Writing Address %X ,
packet Number %d",address,packetNum);
progressText->Text = tempbuf;
progressText->Update(); <<=========== NEED THIS
..
..
..
many other controls as above
Application->ProcessMessages(); <<<======== Thought this might help
}
|
|
| Back to top |
|
 |
Simon Owen Guest
|
Posted: Wed Feb 18, 2004 10:22 am Post subject: Re: Updating Static Controls |
|
|
You can use the Repaint method of the form to get
it to redraw/update all controls. Other than this your
stuck with updating each control seperately.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|