BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Updating Static Controls

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Gennaro
Guest





PostPosted: Tue Dec 09, 2003 6:28 pm    Post subject: Updating Static Controls Reply with quote



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





PostPosted: Wed Feb 18, 2004 10:22 am    Post subject: Re: Updating Static Controls Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.