[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 936

type TCustomStaticText = class(TWinControl)

protected

  function GetLabelText; virtual;

  

GetLabelText - returns text string for label

  procedure RealSetText(); override;

  

Procedure to store text associated with the control in a string

  procedure Notification(); override;

  

  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

  function GetControlClassDefaultSize; override;

  

Find the default size for this class of controls (by reference to parents)

public

  constructor Create(); override;

  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

end;

Inheritance

TCustomStaticText

  

TCustomStaticText : the base class for Static Text

|

TWinControl

  

TWinControl - the base class for all windowed controls

|

TControl

  

TControl - the main ancestor class for visual controls.

|

TLCLComponent

?

TObject