I have tried TMEMO but..... lazarus / 31-LCL ---------------------------------------------------------------------- jshand2010 · 2012-04-11 23:23 Hey guys, i have tried tmemo and found that it has line length limitations (even in gtk2) and have also tried synedit, but to no avail, that also has line length limitations......is there a way around this?  my software will require the ability to have unlimited line lengths (long paragraphs) to store important information in a file please help me out thanks guys ps  i have also placed in the bug reporting area a request to bring back trichmemo.  please also let me know if this might be my answer ---------------------------------------------------------------------- User137 · 2012-04-12 05:25 If you draw the text yourself, you can even use TCanvas of some object for this. So, the answer may differ based on what kind of use you need long lines for. ---------------------------------------------------------------------- ludob · 2012-04-12 06:56 Changing  thread doesn't change the answer: http://forum.lazarus.freep ascal.org/index.php/topic,16456.msg89540.html#msg89540 Note that windows uses several functions to control or get info from controls that are limited to 16 bit words. Fe the EM_POSFROMCHAR uses 16 bit values to return the X and Y coordinates. So the chances of finding a native control that goes beyond 64k characters are very slim. I believe you tackle the problem from the wrong side. Unless you want to display all the characters in one line, you don't need a visual component that is able to deal with unlimited line lengths. Do you really think Word or OpenOffice or any other word processing software uses a visual control that does automagically the line wrapping for them?  If you need to keep the paragraph stored as one line then separate the text storage from its visual presentation and write the functions that convert one to the other. ---------------------------------------------------------------------- Martin_fr · 2012-04-12 17:24 Quote from: jshand2010 on April 12, 2012, 01:23:09 ami have tried tmemo and found that it has line length limitations (even in gtk2) and have also tried synedit, but to no avail, that also has line length limitations SynEdit should have no limit, except it uses strings. So 2 billion is the limit. - Older versions IIRC had some issues. - Not sure about memory usage and speed (I tested about 1 million char len, and that was acceptable...) Also SynEdit differs from TMemo, as it does not wrap lines. Can you provide steps to reproduce, for say 1 or 2 million char len? ---------------------------------------------------------------------- jshand2010 · 2012-04-12 20:54 hi martin, thanks for your reply in synedit (it has two max properties both set at 1024.  does this matter? a question with synedit...is there a way to get rid of line count on the left hand side of the box.  it looks ugly.  also is the synmemo similar to synedit? at this stage i am unable to provide steps to reproduce ---------------------------------------------------------------------- Martin_fr · 2012-04-12 22:41 Quote from: jshand2010 on April 12, 2012, 10:54:16 pmin synedit (it has two max properties both set at 1024.  does this matter? 1) MaxUndo has to do with undo/redo (ctrl-z) 2) MaxLeftChar If you allow the caret to be placed past the end of line, then this is used. Actually it is a minimum: "Assume a minimum line length of ..., for caret navigation" - if your longest line is 200, you can still go to pos 1024 (or whatever value is set) - if your longest line is 1,000,000 then you can go all the way in older SynEdit, this actually was broken, and prevented navigation on longer lines. But that was fixed. Quotea question with synedit...is there a way to get rid of line count on the left hand side of the box.  it looks ugly.  also is the synmemo similar to synedit? Look at the Gutter property.  SynEdit.Gutter.Visible SynMemo is 99.99% identical.It only adds the following helpers Code: [Select]    function CharIndexToRowCol(Index: integer): TPoint;                            function RowColToCharIndex(RowCol: TPoint): integer;                        procedure Append(const Value: String);  // identical to SynEdit.Lines.Append     procedure Clear;                          // identical to SynEdit.Lines.Clear It has lots of stuff not published, and is only kept for compatibility