TRichMemo. how do i make it store more?

i have a component, that derives from TRichMemo.
i have discovered it has a limit. and i want to bump it up (to infinate prefurably).
ive tried using the lines.capacity, but it doesnt seem to want to work.
is it something im doing wrong?

ok so, how do i make a TRichMemo store more?

(Delphi 7 by the way)
Cheers
Kristian
LVL 1
KristianAsked:
Who is Participating?
 
geobulConnect With a Mentor Commented:
Hi,

Are you talking about the standard TRichEdit component? If yes then try:

1.
uses RichEdit;

Richedit1.Perform(EM_EXLIMITTEXT,0,$FFFFF);  //1 MB Limit, higher values are also possible

2.
RichEdit1.MaxLength := 1048575; // for 1 mb

Regards, Geo
0
 
KristianAuthor Commented:
Perfect, thank you.
K
0
All Courses

From novice to tech pro — start learning today.