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 

Repaint TMemo

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





PostPosted: Mon Nov 24, 2003 8:21 pm    Post subject: Repaint TMemo Reply with quote



I need to build a TMemo without it being updated. I have several thousand
lines and it takes some time if it is repainted after every line. I can
make the TMemo invisible and then visible again. But it flickers that way.

Any Ideas?

Thanks.


Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Mon Nov 24, 2003 8:52 pm    Post subject: Re: Repaint TMemo Reply with quote




"Me" <ronln (AT) cox (DOT) net> wrote

Quote:
I need to build a TMemo without it being updated. I have several
thousand lines and it takes some time if it is repainted after every line.

Use the BeginUpdate() and EndUpdate() methods, ie:

Memo1->Lines->BeginUpdate();
// make your changes
Memo1->Lines->EndUpdate();


Gambit



Back to top
Ron
Guest





PostPosted: Mon Nov 24, 2003 8:58 pm    Post subject: Re: Repaint TMemo Reply with quote



Thanks, worked great.
"Remy Lebeau (TeamB)" <gambit47.no.spam (AT) no (DOT) spam.yahoo.com> wrote

Quote:

"Me" <ronln (AT) cox (DOT) net> wrote in message
news:3fc2680e$1 (AT) newsgroups (DOT) borland.com...
I need to build a TMemo without it being updated. I have several
thousand lines and it takes some time if it is repainted after every
line.

Use the BeginUpdate() and EndUpdate() methods, ie:

Memo1->Lines->BeginUpdate();
// make your changes
Memo1->Lines->EndUpdate();


Gambit





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.