dbgrid read current value on work cell on keypress event lazarus / 31-LCL ---------------------------------------------------------------------- laguna · 2012-10-10 07:41 dbgrid  read current value on work cell on keypress event in Delphi this is ok //Declare   type TFooDBGrid = class(TDBGrid); //Current value on KeyPress Event S:=TFooDBGrid(DBGrid1).InplaceEditor.EditText; in Lazarus this not run because the InplaceEditor property,  different on  the delphi  TCustomGrid = class(TCustomControl)   on Lazarus   property InplaceEditor: TWinControl read FEditor;   on Delphi   FInplaceEdit: TInplaceEdit;   function CreateEditor: TInplaceEdit; virtual;   property InplaceEditor: TInplaceEdit read FInplaceEdit; Is there a solution to overcome this. Get the current value of the cell text as you type characters? at a glance: I need to access and read the contents of a cell as if it were a textbox Thanks ---------------------------------------------------------------------- laguna · 2012-10-10 09:17 I solved this way, lay, but this change should be approved by the Staf of Lazarus Append function in "controls.pp" file TWinControl = class(TControl) public   (sezion) function  GetTextString: String;  Append function in "wincontrol.inc" file function TWinControl.GetTextString: String; begin   Result := '';   if not HandleAllocated   or (csLoading in ComponentState)   or not TWSWinControlClass(WidgetSetClass).GetText(Self, Result)   then Result := inherited GetText; end; ---------------------------------------------------------------------- BigChimp · 2012-10-10 09:24 Please post patches in the bugtracker (link top left of this page), mentioning your Lazarus version, and operating system. Thanks, BigChimp ---------------------------------------------------------------------- laguna · 2012-10-10 09:30 I do not have the ability to report this, given my poor English, I put the files in my attachment, you can report it? Thank you all. ---------------------------------------------------------------------- BigChimp · 2012-10-10 09:34 Your English is just fine. If you can make yourself understood here, you'll have no problems on the bug tracker. In your bug report you can link to this forum thread and... the code speaks for itself. Good luck, BigChimp ---------------------------------------------------------------------- laguna · 2012-10-10 13:34 You can check whether the message has been made ​​correctly? http://bugs.freepascal.org/view.php?id=23103 ---------------------------------------------------------------------- BigChimp · 2012-10-10 13:35 Thanks for the report; however it's better to send a patch instead of entire files. This makes applying the patch when some other part of the file changes easier. See http://wiki.lazarus.freepascal.org/Creating_A_Patch ---------------------------------------------------------------------- laguna · 2012-10-10 14:16 Ok, verify please? ---------------------------------------------------------------------- BigChimp · 2012-10-10 15:59 You uploaded a diff: excellent. Haven't looked at the contents to see what they do. Thanks for helping make Lazarus/FPC better! BigChimp