TAdvStringGridTEditLink

Contents - Methods - Properties


Description
Base class for an edit link with which any TWinControl descendant editor can be used as inplace editor for the grid.

TEditLink - Methods

Contents - TEditLink - Properties

CreateEditor
Delphi declaration
procedure CreateEditor(AParent: TWinControl);
C++ declaration
virtual void __fastcall CreateEditor(Controls::TWinControl *AParent)

Description
Override this method to create the inplace editor
DestroyEditor
Delphi declaration
procedure DestroyEditor;
C++ declaration
virtual void __fastcall DestroyEditor(void)

Description
Override this method to destroy the inplace editor
EditExit
Delphi declaration
procedure EditExit(Sender: TObject);
C++ declaration
void __fastcall EditExit(System::TObject *Sender)

Description
Override this method to handle leaving focus from the inplace editor
EditKeyDown
Delphi declaration
procedure EditKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
C++ declaration
virtual void __fastcall EditKeyDown(System::TObject *Sender, Word & Key, Classes::TShiftState Shift)

Description
Override this method to handle the keydown event of the inplace editor
FormExit
Delphi declaration
procedure FormExit(Sender: TObject);
C++ declaration
void __fastcall FormExit(System::TObject *Sender)

Description
Override this method to handle leaving focus from a popup edit control.
GetCellValue
Delphi declaration
function GetCellValue: string;
C++ declaration
AnsiString __fastcall GetCellValue()

Description
Retrieves the value of the edited cell
GetEditControl
Delphi declaration
function GetEditControl: TWinControl;
C++ declaration
virtual Controls::TWinControl *__fastcall GetEditControl(void)

Description
Retrieves the current inplace editor as a TWinControl. Cast to the correct class type to handle special properties of the descendant class.
GetEditorValue
Delphi declaration
function GetEditorValue: string;
C++ declaration
virtual AnsiString __fastcall GetEditorValue()

Description
Retrieves the value of the inplace edit control.
GetParent
Delphi declaration
function GetParent: TWinControl;
C++ declaration
Controls::TWinControl *__fastcall GetParent(void)

Description
Retrieves the parent of the inplace edit control. This is either the grid or the popup window control used for popup style inplace editor.
HideEditor
Delphi declaration
procedure HideEditor;
C++ declaration
void __fastcall HideEditor(void)

Description
Hides the inplace editor.
SetCellProps
Delphi declaration
procedure SetCellProps(AColor: TColor; AFont: TFont);
C++ declaration
virtual void __fastcall SetCellProps(Graphics::TColor AColor, Graphics::TFont *AFont)
SetCellValue
Delphi declaration
procedure SetCellValue(s: string);
C++ declaration
void __fastcall SetCellValue(AnsiString s)

Description
Sets the value of the cell being edited.
SetEditorValue
Delphi declaration
procedure SetEditorValue(s: string);
C++ declaration
virtual void __fastcall SetEditorValue(AnsiString s)

Description
Sets the value of the current inplace editor
SetFocus
Delphi declaration
procedure SetFocus(Value: Boolean);
C++ declaration
virtual void __fastcall SetFocus(bool Value)

Description
Override this method to handle special settings when the inplace editor gains focus.
SetProperties
Delphi declaration
procedure SetProperties;
C++ declaration
virtual void __fastcall SetProperties(void)

Description
Override this method to set properties before the inplace editor is displayed.
SetRect
Delphi declaration
procedure SetRect(r: TRect);
C++ declaration
virtual void __fastcall SetRect(const Windows::TRect & r)

Description
Override this method to set the bounding rectangle of the inplace editor
SetVisible
Delphi declaration
procedure SetVisible(Value: Boolean);
C++ declaration
virtual void __fastcall SetVisible(bool Value)

Description
Override this method to handle special settings when the inplace editor is set visible

TEditLink - Properties

Contents - TEditLink - Methods

EditCell
Delphi declaration
property EditCell: TPoint;
C++ declaration
__property Windows::TPoint EditCell

Description
Holds the coordinate of the current cell being edited
EditStyle
Delphi declaration
property EditStyle: TEditStyle;
C++ declaration
__property TEditStyle EditStyle={ nodefault }

Description
Specifies either an inplace editor that is positioned inside the cell or a popup editor.
Grid
Delphi declaration
property Grid: TAdvStringGrid;
C++ declaration
__property TAdvStringGrid *Grid

Description
Parent grid of the inplace edit control
PopupHeight
Delphi declaration
property PopupHeight: Integer;
C++ declaration
__property int PopupHeight={ nodefault }

Description
Sets the height of a popup edit control (used when EditStyle = esPopup)
PopupWidth
Delphi declaration
property PopupWidth: Integer;
C++ declaration
__property int PopupWidth={ nodefault }

Description
Sets the width of a popup edit control (used when EditStyle = esPopup)
Tag
Stores an integer value as part of a component.

Delphi declaration
property Tag: Integer;
C++ declaration
__property int Tag={ nodefault }

Description
Tag has no predefined meaning. The Tag property is provided for the convenience of developers. It can be used for storing an additional integer value or it can be typecast to any 32-bit value such as a component reference or a pointer.

WantKeyEscape
Delphi declaration
property WantKeyEscape: Boolean;
C++ declaration
__property bool WantKeyEscape={ nodefault }

Description
When true, pressing the escape key is handled by the inplace editor. When false, the escape key is handled by the grid.
WantKeyHomeEnd
Delphi declaration
property WantKeyHomeEnd: Boolean;
C++ declaration
__property bool WantKeyHomeEnd={ nodefault }

Description
When true, pressing the home/end keys are handled by the inplace editor. When false, the home/end keys are handled by the grid.
WantKeyLeftRight
Delphi declaration
property WantKeyLeftRight: Boolean;
C++ declaration
__property bool WantKeyLeftRight={ nodefault }

Description
When true, pressing the left/right keys are handled by the inplace editor. When false, the left/right keys are handled by the grid.
WantKeyPriorNext
Delphi declaration
property WantKeyPriorNext: Boolean;
C++ declaration
__property bool WantKeyPriorNext={ nodefault }

Description
When true, pressing the prior/next keys are handled by the inplace editor. When false, the prior/next keys are handled by the grid.
WantKeyReturn
Delphi declaration
property WantKeyReturn: Boolean;
C++ declaration
__property bool WantKeyReturn={ nodefault }

Description
When true, pressing the return keys is handled by the inplace editor. When false, the return key is handled by the grid.
WantKeyUpDown
Delphi declaration
property WantKeyUpDown: Boolean;
C++ declaration
__property bool WantKeyUpDown={ nodefault }

Description
When true, pressing the up/down keys are handled by the inplace editor. When false, the up/down keys are handled by the grid.