Sumber Kode

Store more than 64 KB in a TRichEdit

  • delphibasics
  • Nov 19' 14
  • Delphi
  • 44
  • 272
  • United States
By default, a TRichedit's text is limited to 64 KB. Setting the Maxlength property to $7FFFFFF0 allows you to have approx. 2GB of text.

procedure TForm1.Button1Click(Sender: TObject);
begin
   RichEdit11.MaxLength := $7FFFFFF0;
end;

or

procedure TForm1.Button1Click(Sender: TObject);
begin
   SendMessage(RichEdit1.Handle, EM_EXLIMITTEXT, 0, $7FFFFFF0);
end;

Powered by
Pasar Kode Partner

Share

  • Tags :
comments powered by Disqus

Kode Terkait

Introduction to using DLLs in Delphi

Multiple Document Interface [MDI] Example

Owner Draw - ComboBox

How to allow or disallow program shutdown in Delphi

Delete the relocations from a PE file.

Owner Draw - DB Grid

Low Level Utilities - Resource Package

MiscUnits - Resource Package

ImageTypes - Resource Package

Resource Utilities - Resource Package



Kategori