Vcl.StdCtrls.TLabel

From RAD Studio API Documentation
Jump to: navigation, search

Vcl.StdCtrls.TCustomLabelVcl.Controls.TGraphicControlVcl.Controls.TControlSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTLabel

Delphi

TLabel = class(TCustomLabel)

C++

class PASCALIMPLEMENTATION TLabel : public TCustomLabel

Properties

Type Visibility Source Unit Parent
class public
Vcl.StdCtrls.pas
Vcl.StdCtrls.hpp
Vcl.StdCtrls Vcl.StdCtrls

Description

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

Use TLabel to add text that the user cannot edit on 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. The Caption property can be used to define an accelerator key to a label control.

Because TLabel is not a descendant of TWinControl, it does not have its own window and cannot 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.

See Also