| View previous topic :: View next topic |
| Author |
Message |
Me Guest
|
Posted: Mon Nov 24, 2003 8:21 pm Post subject: Repaint TMemo |
|
|
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
|
Posted: Mon Nov 24, 2003 8:52 pm Post subject: Re: Repaint TMemo |
|
|
"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
|
Posted: Mon Nov 24, 2003 8:58 pm Post subject: Re: Repaint TMemo |
|
|
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 |
|
 |
|