Sign in Join
FPDoc Onlineexperiment

MaskEdit unit

Defines classes, types, and constants used to implement a masked edit control.

maskedit.pp implements an masked edit control which can be used to format, validate, or obscure the text entered in the control. The following components are added to the Lazarus IDE component palette:

Additional Tab

  • TMaskEdit

maskedit.pp is part of the Lazarus Component Library ( LCL).

Classes and records

EDBEditErrorclassException class raised for an error in a masked edit control.
EInvalidCodePointclassException raised when an error occurs while setting a UTF-8 Code Point in a String.
EInvalidEditMaskclassException type raised for an invalid mask value in an edit mask.
EInvalidUtf8classAncestor for UTF-8 exceptions.
TCustomMaskEditclassThe base class for TMaskEdit.
TIntMaskRecrecordRepresents the type and literal used for a character in an edit mask.
TMaskEditclassTMaskEdit is an Edit box with characters masked out to avoid unauthorized reading.

Procedures and functions

FormatMaskTextfunctionApplies an edit mask to the specified string value.
RegisterprocedureRegisters component for use in the Lazarus IDE.
SplitEditMaskprocedureSeparates fields in the edit mask into the arguments passed to the routine.

Types

TInternalMasktypeArray type used to represent edit mask symbols in TCustomMaskEdit.
TMaskeditTrimTypeenumerationControls how the value in a masked edit control is trimmed.
TMaskEditValidationErrorModeenumerationRepresents the action taken for an error in TMaskEdit validation.
tMaskedTypeenumerationEnumeration with values representing mask character types.

Constants

cMask_AllCharsconstantAn optional UTF-8 character.
cMask_AllCharsFixedconstantA required UTF-8 character.
cMask_AlphaNumconstantAn optional alphanumeric character.
cMask_AlphaNumFixedconstantA required alphanumeric character.
cMask_BinaryconstantAn optional binary character.
cMask_BinaryFixedconstantA required binary character.
cMask_DateSeparatorconstantInserts the date separator character.
cMask_HexconstantAn optional hexadecimal character.
cMask_HexFixedconstantA required hexadecimal character.
cMask_HourSeparatorconstantInserts the hour separator char.
cMask_LetterconstantCan contain an optional letter only.
cMask_LetterFixedconstantMust contain a letter only.
cMask_LowerCaseconstantAfter this the chars are in lower case.
cMask_NoLeadingBlanksconstantCauses leading blanks to be trimmed from the value.
cMask_NumberconstantAn optional numeric character.
cMask_NumberFixedconstantA required numeric character.
cMask_NumberPlusMinconstantAn optional numeric or sign character.
cMask_SetEndconstantIndicates the end of a set definition.
cMask_SetNegateconstantNegates the following set definition.
cMask_SetOptionalconstantIndicates a set of optional characters allowed for a position in a mask.
cMask_SetRangeconstantIndicates that the character set definition uses a range of character values.
cMask_SetStartconstantIndicates the start of a set definition.
cMask_SpecialCharconstantAfter this you can set an arbitrary char.
cMask_UpperCaseconstantAfter this the chars are in upper case.
DefaultBlankconstantRepresents a blank character value in a mask.
MaskFieldSeparatorconstantDelimiter used between fields in a mask.
MaskNoSaveconstantRepresents a character that is not stored in a mask.
SEmptySetconstantException message used when an empty set is specified in an edit mask.
SFoundChar_InvalidconstantException message used when an invalid mask character is found.
SIllegalCharInSetconstantException message used when a mask character not in the ASCII character set is used.
SIllegalRangeCharconstantException message used when more than one set range is used in an edit mask.
SIndexOutOfRangeForFMaskconstantException message used when a position in the internal mask is not valid.
SInvalidCodePointconstantMessage displayed in the EInvalidCodePoint exception.
SUnclosedSetconstantException message used when an unclosed set is found in an edit mask.

Uses

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