Class TFitLabel (unit FitLabel)

Inherits from

TLabel

Constructors


constructor Create(AOwner : TComponent);

Public declarations

----------------------------------------------------------------------



Functions

Procedure Paint;

Protected declarations

----------------------------------------------------------------------


Procedure DrawLabelText(var Rect : TRect; Flags : Word);

Publish, will be shown in ObjectInspector

Sometimes you see the keyword 'invalidate' in routines like this, but what does it do?*) End; {----------------------------------------------------------------------


Procedure SetXAspectRatio(Value : Word);

----------------------------------------------------------------------

Procedure SetYAspectRatio(Value : Word);

You can change its value in the ObjectInspector

Sometimes you see the keyword 'invalidate' in routines like this, but what does it do?*) End; {----------------------------------------------------------------------


Properties

property Alignment : TAlignment


property AutoSize : Boolean

Published declarations

property Layout : TTextLayout


property XAspectRatio : word

Inherited anyway property Color; property Cursor; property DragCursor; property DragMode; property Enabled; property Hint; property ParentColor; property ParentFont; property Font; property ShowHint;

property YAspectRatio : word

I don't know why I can set the default here, the ObjectInspector shows a '0' anyway

Events

Variables

FAlignment : TAlignment;


FAutoSize : Boolean;

Private declarations } {The next values normally show up in the ObjectInspector are made read-only, so the will not be shown in the ObjectInspector

FLayout : TTextLayout;


FXAspectRatio : Word;

These values are normally NOT in the ObjectInspector

FYAspectRatio : Word;

Publish, wil be shownn in ObjectInspector


Constructors


constructor Create(AOwner : TComponent);

Public declarations

----------------------------------------------------------------------


Functions


Procedure Paint;

Protected declarations

----------------------------------------------------------------------


Procedure DrawLabelText(var Rect : TRect; Flags : Word);

Publish, will be shown in ObjectInspector

Sometimes you see the keyword 'invalidate' in routines like this, but what does it do?*) End; {----------------------------------------------------------------------


Procedure SetXAspectRatio(Value : Word);

----------------------------------------------------------------------


Procedure SetYAspectRatio(Value : Word);

You can change its value in the ObjectInspector

Sometimes you see the keyword 'invalidate' in routines like this, but what does it do?*) End; {----------------------------------------------------------------------


Properties


property Alignment : TAlignment


property AutoSize : Boolean

Published declarations


property Layout : TTextLayout


property XAspectRatio : word

Inherited anyway property Color; property Cursor; property DragCursor; property DragMode; property Enabled; property Hint; property ParentColor; property ParentFont; property Font; property ShowHint;


property YAspectRatio : word

I don't know why I can set the default here, the ObjectInspector shows a '0' anyway


Events


Variables


FAlignment : TAlignment;


FAutoSize : Boolean;

Private declarations } {The next values normally show up in the ObjectInspector are made read-only, so the will not be shown in the ObjectInspector


FLayout : TTextLayout;


FXAspectRatio : Word;

These values are normally NOT in the ObjectInspector


FYAspectRatio : Word;

Publish, wil be shownn in ObjectInspector