[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'StdCtrls' (#lcl)

TCustomStaticText

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TCustomStaticText : the base class for Static Text

Declaration

Source position: stdctrls.pp line 965

type TCustomStaticText = class(TWinControl)

  class procedure WSRegisterClass; override;

  

WSRegisterClass - Register this Class for the current Widget Set

protected

  function GetLabelText; virtual;

  

GetLabelText - returns text string for label

  procedure RealSetText(); override;

  

RealSetText - calls inherited method then adjusts size

  procedure Notification(); override;

  

Notification - calls inherited Notification, then takes action depending on Operation

  procedure SetFocusControl(); virtual;

  

SetFocusControl - specifies which control has focus

  procedure SetShowAccelChar(); virtual;

  

SetShowAccelChar - sets boolean flag to determine whether accelerator characters are to be shown

  function DialogChar(); override;

  

DialogChar - a LCL Key Message; returns True if a Dialog character has an associated message

protected

  class function GetControlClassDefaultSize; override;

  

GetControlClassDefaultSize returns its own defaults, overriding inherited values

public

  constructor Create(); override;

  

Create - constructor for TCustomStaticText: calls inherited Create the initialises style, alignment and bounds

  property Alignment: TAlignment; [rw]

  

Alignment - whether text is centered, left- or right-justified

  property BorderStyle: TStaticBorderStyle; [rw]

  

BorderStyle - none, or single

  property FocusControl: TWinControl; [rw]

  

FocusControl - the control that currently receives focus

  property ShowAccelChar: Boolean; [rw]

  

ShowAccelChar - underline the character in the static text that acts as an accelerator with a shortcut key

  property Transparent: Boolean; [rw]

end;

Inheritance

TCustomStaticText

  

TCustomStaticText : the base class for Static Text

|

TWinControl

|

TControl

|

TLCLComponent

  

TLCLComponent - base class for LCL components

|

TComponent,IUnknown,IInterfaceComponentReference

|

TPersistent

|

TObject

The latest version of this document can be found at lazarus-ccr.sourceforge.net.