[Lazarus] RE : Displaying text with colour and insertion point

Ludo Brands ludo.brands at free.fr
Wed May 16 20:07:45 CEST 2012


> Looking at the CmdLine component, it appears OK as a command window 
> (i.e. accepting keyboard input etc.) but isn't so hot when 
> the principal 
> requirement is to display text pushed into the underlying strings 
> storage from elsewhere: in particular, there isn't a way to force the 
> insertion point marker to the end of what's just been output.

Do you mean that when typing a command the output of the command is
overwriting part of the previous output added with TCmdBox.Write or
TCmdBox.WriteStream? As long as data written with TCmdBox.Write or
TCmdBox.WriteStream is terminated by a linefeed (TCmdBox.Writeln('') or a
#10 as last character) that doesn't happen. 

Ludo





More information about the Lazarus mailing list