[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Grids' (#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 235

type TStringCellEditor = class(TCustomMaskEdit)

protected

  procedure WndProc(); override;

  

Implements the message processing loop for the cell editor control.

  procedure Change; override;

  

Performs actions needed when the value in the cell editor has been changed.

  procedure KeyDown(); override;

  

Handles a key down event for the control.

  procedure msg_SetMask(); message;

  

Handles the message used to set the EditMask for the cell editor.

  procedure msg_SetValue(); message;

  

Handles the message used to set the Text and caret position in the cell editor.

  procedure msg_GetValue(); message;

  

Handles the message used to store the coordinates and text for the cell to the specified grid message.

  procedure msg_SetGrid(); message;

  

Handles the message used to store the associated grid and options for the cell editor.

  procedure msg_SelectAll(); message;

  

Calls the SelectAll method when the GM_SELCTALL message is received.

  procedure msg_SetPos(); message;

  

Stores the column and row numbers from the specified message to the cell editor.

  procedure msg_GetGrid(); message;

  

Stores the associated grid control and its options to the specified message.

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;

  

Event handler signalled when editing is completed for the control.

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.

|

TComponent,IUnknown,IInterfaceComponentReference

|

TPersistent,IFPObserved

|

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.


Version 3.2 Generated 2024-02-25 Home