Sign in Join
FPDoc Onlineexperiment

StdCtrls unit

Standard controls used in the Lazarus Component Library (LCL).

stdctrls.pp contains standard controls used in Lazarus Component Library (LCL) applications. Most of the controls are found on the Standard tab in the Lazarus IDE component palette, including:

  • TButton
  • TLabel
  • TEdit
  • TMemo
  • TToggleBox
  • TCheckBox
  • TRadioButton
  • TListBox
  • TComboBox
  • TScrollBar
  • TGroupBox

The following controls are added to the Additional tab in the Lazarus IDE component palette:

  • TStaticText

Classes and records

TButtonclassImplements a push button control.
TButtonActionLinkclassLinks a button control to a basic action.
TButtonControlclassSpecifies a base class for button controls.
TCheckBoxclassA label with a box which can contain a check mark.
TComboBoxclassImplements a control with an edit box and a drop-down list allowing one of several options to be chosen.
TComboBoxStyleHelperhelperHelper for the TComboBoxStyle type.
TCustomButtonclassThe base class for a push button control.
TCustomCheckBoxclassThe base class for a check box component.
TCustomComboBoxclassThe base class for combo-box components.
TCustomEditclassThe base class for controls presenting editable text.
TCustomGroupBoxclassThe base class for TGroupBox, TRadioGroup and TCheckGroup.
TCustomLabelclassControl used to show static text optionally using multiple lines.
TCustomListBoxclassThe base class for TListBox.
TCustomMemoclassThe base class for multi-line text controls.
TCustomScrollBarclassThe base class for TScrollBar.
TCustomStaticTextclassThe base class for TStaticText.
TEditclassImplements an edit control with a single line of text.
TGroupBoxclassA container that allows a number of objects to be grouped physically and conceptually on a form.
TLabelclassControl used to display static text, possibly in multiple lines and rotated by an arbitrary angle.
TListBoxclassControl which displays a scrollable list of values.
TMemoclassControl used to display and edit multi-line text.
TMemoScrollbarclassA scrollbar for use in Memo controls.
TRadioButtonclassImplement a radio button control.
TScrollBarclassA control that allows the user to scroll the content in an associated control by moving a slider.
TStaticTextclassControl used to display a text value which does not change.
TToggleBoxclassA labelled box capable of being checked or unchecked.

Procedures and functions

CreateEmulatedTextHintFontfunctionGets the font instance used for an emulated TextHint display.
RegisterprocedureRegisters components declared in the unit.

Types

TButtonActionLinkClasstypeClass reference used to create new instances of TButtonActionLink.
TCheckBoxStateenumerationRepresents the states for a check box.
TComboBoxAutoCompleteTextsetSet of TComboBoxAutoCompleteTextOption values.
TComboBoxAutoCompleteTextOptionenumerationDefines the behavior of the AutoComplete feature in a combo-box control.
TComboBoxStyleenumerationThe display style available for combo-box controls.
TDrawItemEventprocedure typeSpecifies an event handler used to paint a single item in an owner-drawn list box or combo-box.
TEchoModeenumerationHow text in the edit box is displayed.
TEditCharCaseenumerationDetermines the case for text in an edit box or a combo-box control.
TEditOptionenumeration
TEditOptionsset
TEmulatedTextHintStatusenumerationStatus values for an emulated TextHint display in a control.
TLBFindDataEventprocedure typeSpecifies an object function type...
TLBGetDataEventprocedure typeSpecifies an object procedure type used to get the data for an item on a list box control in "virtual mode".
TLBGetDataObjectEventprocedure typeSpecifies an object procedure type...
TListBoxOptionenumerationRepresents options available in a list box control.
TListBoxOptionssetSet type used to store values from the TListBoxOption enumeration.
TListBoxStyleenumerationDetermines how items are drawn in a list box control.
TMeasureItemEventprocedure typeSpecifies an event handler used to get the Height for a single item in an owner-drawn list box or combo-box.
TOwnerDrawStatetypeAlias for the TOwnerDrawState type in lcltype.pp.
TScrollCodeenumerationThe scroll action type, as reported by the widget.
TScrollEventprocedure typeDefines an event handler type for scrollbar events.
TScrollStyleenumerationIndicates the visibility for scrollbars on a control.
TSelectionChangeEventprocedure typeSpecifies an event handler for change notifications from a list box control.
TStaticBorderStyleenumerationContains border styles used for static text controls.

Constants

DefaultComboBoxAutoCompleteTextconstantDefault values for the AutoCompleteText property in combo-box controls.

Topics

HowToUseStdCtrlstopicHow to use StdCtrls, ComCtrls or ExtCtrls.

Uses

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.