RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomLabel Class

TCustomLabel is the base class for non-windowed controls that display text on a form.

Pascal
TCustomLabel = class(TGraphicControl);
C++
class TCustomLabel : public TGraphicControl;

StdCtrls

Use TCustomLabel as a base class when defining objects that display text that users can't edit. TCustomLabel introduces several new properties and methods to control the appearance of the text. 

TCustomLabel is not a descendant of TWinControl, so it does not have its own window and can't receive direct input from the keyboard. To define an object that responds to direct keyboard input in addition to displaying text, use TCustomStaticText as a base class. 

Do not create instances of TCustomLabel. To put a label on a form, use a TLabel object. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!