I've been using it with TMemo, and it worked fine. When I switched
from TMemo to TSynEdit, code didn't work. What is alternative?
Thank you,
Milan
-----Original Message-----
From: synedit-user-admin@...
[mailto:synedit-user-admin@...] On Behalf Of Dean
Harmon
Sent: Friday, September 03, 2004 5:00 PM
To: Milan Tomic; synedit-user@...
Subject: RE: [Synedit-user] Tab vs \r\n (#13#10)
You could never do that in either Delphi or C++ Builder with any
TStrings decendant. You may add mCode->Linex->Text += "\r\n\some text"
but when you do that when adding a line directly to the TStrings object
it will never occur (ie it will always do exactly what you described)
_____
From: synedit-user-admin@...
[mailto:synedit-user-admin@...] On Behalf Of Milan
Tomic
Sent: Friday, September 03, 2004 9:27 AM
To: synedit-user@...
Subject: RE: [Synedit-user] Tab vs \r\n (#13#10)
The interesting thing is that when I copy & paste text from TSynEdit
into C++ Builder or Visual C++ editors, those editors shows text
correctly.
-----Original Message-----
From: synedit-user-admin@...
[mailto:synedit-user-admin@...] On Behalf Of Milan
Tomic
Sent: Friday, September 03, 2004 1:59 PM
To: synedit-user@...
Subject: [Synedit-user] Tab vs \r\n (#13#10)
Hello,
I've just taked from CVS newest sources. When I try this in C++
Builder:
//mCode is TSynEdit
mCode->Lines->Add("\r\nsome text");
as result I got:
some text
the problem is that instead to put text in new line it adds two (2)
spaces in a front of a text. Why?? :( Is there some option I should set?
This was for the TSynCppSyn, but when I use TSynVBSyn then I got two (2)
rectangles in a front of a text instead of a new line. :(
Thanks,
Milan
|