Remove: unused unit and code

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2061 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
jujibo
2011-10-05 07:40:13 +00:00
parent b5d913b470
commit 12bd7eecd9

View File

@ -22,7 +22,7 @@ unit jdbgridutils;
interface
uses
Classes, SysUtils, Grids, Dialogs, LCLType, LCLProc, DBGrids, Controls, DB,
Classes, SysUtils, Grids, Dialogs, LCLType, DBGrids, Controls, DB,
jcontrolutils, jinputconsts;
type
@ -199,8 +199,6 @@ begin
if edited and (not updated) then
begin
Field.DataSet.DisableControls;
if (fMaxLength > 0) and (UTF8Length(CellEditor.Text) > fMaxLength) then
CellEditor.Text := UTF8Copy(CellEditor.Text, 0, fMaxLength);
Field.DataSet.Edit;
Field.AsString := CellEditor.Text;
field.DataSet.EnableControls;
@ -230,8 +228,6 @@ begin
if Key in [VK_RETURN, VK_TAB, VK_RIGHT, VK_LEFT] then
begin
Field.DataSet.Edit;
if (fMaxLength > 0) and (UTF8Length(CellEditor.Text) > fMaxLength) then
CellEditor.Text := UTF8Copy(CellEditor.Text, 0, fMaxLength);
Field.AsString := CellEditor.Text;
CellEditor.SelectAll;
updated := True;