RichEdit 64 Kb limit
- Posted by paravantis at otenet.gr Jun 28, 2001
- 509 views
RichEdit controls have a 64 Kb limit no matter what, despite previous messages in the mailing list detailing how to change this limit by either using LimitText(myRichEdit, 65535) or result = sendMessage(myRichEdit, EM_SETLIMITTEXT, 65535, 0) where EM_SETLIMITTEXT=197. In reality these techniques only allow one to change the size UP TO 64 Kb (i.e. 65535 characters). Delving into the Microsoft site, I came across the following info: << If you need to use a control that is expected to contain near or over 64 KB of data, use CRichEditCtrl or CRichEditView. These classes wrap the rich edit Windows control. In both Windows 95 and Windows NT4, there is no definite limit on the amount of text that the control can hold. Theoretically, the rich edit control allows for a maximum of 4 GB of text. In practice, you can run into performance problems with even less than 1 MB of text. Files with many lines of text (not necessarily large files, because the lines can be very short) require a lot of time and CPU power to process the first time scrolling or resizing of the view window. Once the CPU has processed these actions, the control behaves normally. >> Can anybody help with deciphering this? Are the "CRichEditCtrl" and "CRichEditView" classes same as Win32Lib RichEdit controls available to Euphoria users? Is it possible to have RichEdit controls that hold >64 Kb of text? Thank you John Paravantis PhD Department of Technological Education UNIVERSITY OF PIRAEUS <thalis.cs.unipi.gr> jparav at unipi.gr & paravantis at otenet.gr <http://www.geocities.com/paravantis/index.html>