Sign in Join
FPDoc Onlineexperiment

EditBtn unit

Implements specialized edit controls with attached speed buttons.

editbtn.pas contains specialized edit controls with an attached speed button used to perform an action when it is clicked. The following components are added to the Lazarus IDE Component Palette:

Misc tab

  • TEditButton
  • TFileNameEdit
  • TDirectoryEdit
  • TDateEdit
  • TTimeEdit
  • TCalcEdit

editbtn.pas is part of the LCL (Lazarus Component Library).

Classes and records

TCalcEditclassImplements an numeric edit control with a button to display a calculator dialog.
TCustomControlFilterEditclassBase class for edit controls which filter data in an associated control like TListbox or TTreeview.
TCustomEditButtonclassTCustomEditButton - base class for TEditButton, an Edit Box with attached Speed Button.
TDateEditclassImplements a control with an edit box for a date value and an attached speed button to display a date selection (calendar) dialog.
TDirectoryEditclassTDirectoryEdit - an EditBox to hold a directory name, with an attached SpeedButton that summons a Directory Open dialog.
TEbEditclassImplements the embedded edit control used in TCustomEditButton.
TEditButtonclassImplements a grouped edit control with both an Edit and a Button.
TEditSpeedButtonclassImplements a speed button used in TCustomEditButton.
TFileNameEditclassTFileNameEdit - an EditBox to hold a filename, with an attached SpeedButton that summons a File Open dialog.
TTimeEditclassImplements a control used to edit time values.

Procedures and functions

RegisterprocedureRegisters components in the unit for use in the Lazarus IDE.

Types

TAcceptDateEventprocedure typeTAcceptDateEvent - generic event handling method for accepting a date from a dialog.
TAcceptFileNameEventprocedure typeTAcceptFileNameEvent - generic event handling method to accept a filename from a dialog.
TAcceptTimeEventprocedure typeSpecifies an event handler used to validate and accept/reject a time value.
TAcceptValueEventprocedure typeSpecifies an event handler signalled when a calculator dialog has been used to accept or reject a value.
TCheckItemEventprocedure typeSpecifies an event handler is to determine if the specified Item is checked.
TCustomDateEventprocedure typeSpecifies an event handler used to examine or alter a String with a date value.
TCustomTimeEventprocedure typeSpecifies an event handler used to generate an arbitrary time value.
TDateOrderenumerationControls the display order for Month, Day, and Year portions of a date value.
TDateRangeCheckEventprocedure typeSpecifies an event handler signalled prior to validating a date for it lower and upper limits.
TDialogKindenumerationEnumerated type representing dialog styles used in TFileNameEdit.
TFilterItemEventprocedure typeSpecifies an event handler used to filter data items in TCustomControlFilterEdit.
TFilterItemExEventprocedure typeSpecifies an event handler used to filter data items in TCustomControlFilterEdit.
TFilterStringOptionenumerationString filter options which can be enabled in controls.
TFilterStringOptionssetSet type used to store values from the TFilterStringOption enumeration.

Constants

NullDateconstantRepresents a TDateTime type without date and time values.
NullTimeconstantRepresents a TDateTime type without a time value assigned.
ResBtnCalculatorconstantResource name for the default glyph used on the Button in TCalcEdit.
ResBtnCalendarconstantResource name for the default glyph used on the Button in TDateEdit.
ResBtnFileOpenconstantResource name for the default glyph used on the Button in TFileNameEdit.
ResBtnListFilterconstantResource name for the default glyph used on the Button in TCustomControlFilterEdit.
ResBtnSelDirconstantResource name for the default glyph used on the Button in TDirectoryEdit.
ResBtnTimeconstantResource name for the default glyph used on the Button in TTimeEdit.

Uses

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