Unit 'Grids' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]

TStringCellEditor

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

Implements the default editor for cells in TCustomGrid.

Declaration

Source position: grids.pas line 231

type TStringCellEditor = class(TCustomMaskEdit)

protected

  procedure WndProc(); override;

  

Window handling procedure for the cell editor.

  procedure Change; override;

  

Performs actions needed when the text in the control is changed.

  procedure KeyDown(); override;

  

Signals the OnKeyDown event handler (when assigned).

  procedure msg_SetMask(); message;

  

Issues a message for specifying mask.

  procedure msg_SetValue(); message;

  

Issues a message for specifying value.

  procedure msg_GetValue(); message;

  

Issues a message for obtaining value.

  procedure msg_SetGrid(); message;

  

Issues a message for specifying the grid for the editor.

  procedure msg_SelectAll(); message;

  

Issues a message for Selecting all content in the editor.

  procedure msg_SetPos(); message;

  

Issues a message for specifying the position for the editor.

  procedure msg_GetGrid(); message;

  

Message used to get the grid control for the cell editor.

public

  constructor Create(); override;

  

Constructor for the class instance.

  procedure EditingDone; override;

  

Performs actions needed when the cell editor has finished editing the value in a cell.

  property EditText: string;

  

Value entered in the control and obscured / formatted using the EditMask.

  property OnEditingDone: TNotifyEvent;

  

end;

Inheritance

TStringCellEditor

  

Implements the default editor for cells in TCustomGrid.

|

TCustomMaskEdit

  

The base class for TMaskEdit.

|

TCustomEdit

  

The base class for controls presenting editable text.

|

TWinControl

  

Implements a windowed control which can contain other child controls.

|

TControl

  

The base class for visible controls.

|

TLCLComponent

  

The base class for LCL components which have an associated widget.

|

TObject

Description

TStringCellEditor is a TCustomMaskEdit descendant that implements the default editor for cells in TCustomGrid. TStringCellEditor contains internal members used to reference its Grid control, and to access the row and column numbers for the underlying grid cell. TStringCellEditor also implements methods needed for LCL message passing using TGridMessage. An event handler is also published to perform actions needed when editing has been completed in the cell editor.

See also

TCustomGrid

  

Implements the base class for grid controls.

TGridMessage

  

Contains a LCL message and its auxiliary values.

TCustomMaskEdit

  

The base class for TMaskEdit.