while pos(#13, ALine) > 0 do
ALine[pos(#13, ALine)] := ' ';
while pos(#10, ALine) > 0 do
Delete(ALine, pos(#10, ALine), 1);
ScriptRichEdit.Lines.Append(ALine);
ALine is a string, but could inherit some control chars from its source,
hence the 'while..do' code. The problem always occurs on the first ALine
that wraps. WordWrap is set to true.
If you are using the native Borland TRichEdit control, skip this
message.
OTOH, if you are using an RE 2.0-derived control (all current versions
of BCB and Delphi use RE 1.0), the problem is likely to result from a
problem in the way that the VCL handles RE controls. Before going into
the lengthy explanation, is this the case?
robert
The problem that I described does not apply to the standard D4 TRichEdit
control, so the problem must be somewhere else. There are other Rich
Edit components available for Delphi (RX Lib's RxRichEdit and
TRichEdit98 come to mind). However, these are derived closely from the
VCL TRichEdit class and may have the same problem. I am guessing that
the problem is somewhere in your code, though.
robert
Roy Sheridan wrote:
>
> I am using the VCL component from D4; is there an alternative? If so where
> documented? (Thanks for the response.)