[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
TCustomLabel : the base type from which TLabel is derived.
Source position: stdctrls.pp line 1321
type TCustomLabel = class(TGraphicControl) |
||
protected |
||
function CanTab; override; |
|
CanTab - if True, the Tab key can be used to navigate to this control |
procedure DoMeasureTextPosition(); virtual; |
|
|
function HasMultiLine; |
|
HasMultiLine - returns True if label has multiple lines |
procedure CalculatePreferredSize(); override; |
|
CalculatePreferredSize - find default/preferred height and width |
procedure DoAutoSize; override; |
|
DoAutoSize - method for actually performing the AutoSize |
function DialogChar(); override; |
|
DialogChar - a LCL Key Message; returns True if a Dialog character has an associated message |
procedure TextChanged; override; |
|
Procedure to deal with changes in text |
procedure Resize; override; |
|
Checks for changes and calls DoOnResize |
procedure FontChanged(); override; |
|
|
function GetControlClassDefaultSize; override; |
|
Find the default size for this class of controls (by reference to parents) |
procedure WMActivate(); message; |
|
|
procedure Notification(); override; |
|
|
function GetShowAccelChar; |
|
|
function GetAlignment; |
|
|
function GetLabelText; virtual; |
|
|
function GetTransparent; |
|
|
procedure SetAlignment(); |
|
|
procedure SetColor(); override; |
|
|
procedure SetFocusControl(); |
|
|
procedure SetLayout(); |
|
|
procedure SetShowAccelChar(); |
|
|
procedure SetTransparent(); |
|
|
procedure SetWordWrap(); |
|
|
procedure Loaded; override; |
|
Called when the component has finished loading. |
property Alignment: TAlignment; [rw] |
|
Alignment - whether text is centered, left- or right-justified |
property FocusControl: TWinControl; [rw] |
|
FocusControl - whether this control has focus |
property Layout: TTextLayout; [rw] |
|
Layout - How the Text is to be laid out in the text rectangle: at the Bottom, Centre or Top |
property ShowAccelChar: Boolean; [rw] |
|
ShowAccelChar - underline the character in the label that acts as an accelerator with a shortcut key |
property Transparent: Boolean; [rw] |
|
Transparent - whether the viewer can see through the control. Default True |
property WordWrap: Boolean; [rw] |
|
WordWrap - whether a word is to be wrapped to the next line if the text is about to become too long for the width available |
property OptimalFill: Boolean; [rw] |
|
OptimalFill - boolean. If True, font size is adjusted for optimal fill of available space |
public |
||
constructor Create(); override; |
||
function CalcFittingFontHeight(); |
|
Calculate the height of the font needed to fit the available space, given the MaxWidth and MaxHeight constraints |
function ColorIsStored; override; |
|
Colour is stored |
function AdjustFontForOptimalFill; |
|
If True, attempts to adjust font for an optimal fill of the space available |
procedure Paint; override; |
|
Virtual Paint method called in response to paint requests. |
property AutoSize; |
|
Whether auto-size is to be used |
property Color; |
|
Determine the colour for the current control |
end; |
|
TCustomLabel : the base type from which TLabel is derived. |
|
| | ||
|
TGraphicControl is the base class for all lightweight controls. |
|
| | ||
|
TControl - the main ancestor class for visual controls. |
|
| | ||
TLCLComponent |
||
? | ||
TObject |
TCustomLabel : the base type from which TLabel is derived.
lazarus-ccr.sourceforge.net |