RAD Studio VCL Reference
TLabel Class

TLabel is a nonwindowed control that displays text on a form.

TLabel = class(TCustomLabel);
class TLabel : public TCustomLabel;

Use TLabel to add text that the user can't edit to a form. This text can be used to label another control, and can set focus to that control when the user types an accelerator key. 

Because TLabel is not a descendant of TWinControl, it does not have its own window and can't receive direct input from the keyboard. To add an object to a form that can respond to keyboard input (other than setting focus to another object when an accelerator key is typed) in addition to displaying text, use TStaticText

To add an object to a form that displays text that a user can scroll or edit, use TEdit


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!