Article View: borland.public.cppbuilder.nativeapi
Article #4162Re: Application ProcessMessages
From: Remy Lebeau (TeamB)
Date: Fri, 10 Mar 2006 19:21
Date: Fri, 10 Mar 2006 19:21
34 lines
1734 bytes
1734 bytes
"saravanan" <asaravanan@ften.com> wrote in message
news:441117a4$1@newsgroups.borland.com...
> Update function just paints the current form and not all
> the forms in the application.
Correct.
> I need to paint all the forms which needs painting.
Then you would have to loop through the global TScreen::Forms[] array, ie:
void __fastcall UpdateAllForms()
{
for(int i = 0; i < Screen->FormCount; ++i)
Screen->Forms[i]->Update();
}
void __fastcall TForm1::Function()
{
Operation1();
UpdateAllForms();
Operation2();
UpdateAllForms();
Operation3();
UpdateAllForms();
}
.
Gambit
Technical Details
Message-ID:
<4411d170$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<440ee66c@newsgroups.borland.com> <440f21ca$1@newsgroups.borland.com> <441004a5$1@newsgroups.borland.com> <44109fc6$1@newsgroups.borland.com> <441117a4$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,bb5b2339083fb22b X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <440ee66c@newsgroups.borland.com> <440f21ca$1@newsgroups.borland.com> <441004a5$1@newsgroups.borland.com> <44109fc6$1@newsgroups.borland.com> <441117a4$1@newsgroups.borland.com> Subject: Re: Application ProcessMessages Date: Fri, 10 Mar 2006 11:21:20 -0800 Lines: 36 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <4411d170$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1142018416 68.69.17.41 (10 Mar 2006 11:20:16 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail