altralaser
altralaser

Reputation: 2073

Component to display multiline text in Delphi

I'm a Delphi programmer and I'm trying to write an application in which I want to show text from a telnet server. For inputting the commands to send I'm using a TLabeledEdit and for receiving the data I'm using TIdTelnet. That works without any problems so far. But which component should I use to display the text so the output looks like the console window? Should I use a multiline TLabel and place it into a TScrollBox or a TMemo with TabStop property set to False or is there a better solution?

Upvotes: 1

Views: 4772

Answers (2)

Xor-el
Xor-el

Reputation: 242

You can use a TListBox if wish to add additional functionality like painting the background of certain lines of text.

Upvotes: 1

SkyFlyer
SkyFlyer

Reputation: 314

Just use a TMemo (or its alternative, TRichEdit).

Upvotes: 7

Related Questions