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

TCustomMaskEdit

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

TCustomMaskEdit - base class for TMaskEdit, an Edit box with characters masked out to avoid unauthorised reading

Declaration

Source position: maskedit.pp line 75

type TCustomMaskEdit = class(TCustomEdit)

protected

  procedure CMTextChanged(); message;

  

  procedure CMEnter(); message;

  

CMEnter - control message method for pressing the Enter key

  procedure LMMButtonUp(); message;

  

LMMButtonUp - LCL message method for Button Up

  procedure LMPasteFromClip(); message;

  

LMPasteFromClip - LCL message method for pasting from clipboard

  procedure LMCutToClip(); message;

  

LMCutToClip - LCL message method for cutting to clipboard

  procedure LMClearSel(); message;

  

LMClearSel - LCL message method for clearing selected items

  procedure KeyDown(); override;

  

KeyDown - emulate the action of pressing the specified key (makes OnKeyDown respond)

  function EditCanModify; virtual;

  

If True, the Edit box is allowed to modify the contents

  function GetEditText; virtual;

  

Get the text in the edit box (the string that has been masked)

  procedure Reset; virtual;

  

Reset - put back to its default state with mask appearing in Text box and no string input

public

  procedure Clear;

  

Clear - delete all text

  constructor Create(); override;

  

  procedure GetSel();

  

GetSel - finds the start and end positions of the selection

  procedure SetSel();

  

SetSel - specifies the start and end positions of the selection

  procedure ValidateEdit; virtual;

  

Validate the string that has been typed in the edit box

  property EditMask: String; [rw]

  

EditMask - the sequence of characters used to obscure the string being typed (typically a sequence of asterisks)

  property isMasked: Boolean; [r]

  

isMasked - True if the text is masked

  property Text: String; [rw]

  

The Text string that is to be masked (or not)

  property EditText: String; [rw]

  

The string that has been typed in the Edit Box and obscured by the Masking characters

  property SpaceChar: Char; [rw]

  

SpaceChar - the character that is to be used as a Space character

end;

Inheritance

TCustomMaskEdit

  

TCustomMaskEdit - base class for TMaskEdit, an Edit box with characters masked out to avoid unauthorised reading

|

TCustomEdit

?

TObject

Description

Custom Mask Edit: the base type for Mask Edit