You've already forked lazarus-ccr
Fix Return key for some values
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2066 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -296,7 +296,7 @@ begin
|
|||||||
if (not updated) then
|
if (not updated) then
|
||||||
begin
|
begin
|
||||||
theValue := StrToDateTime(CellEditor.Caption);
|
theValue := StrToDateTime(CellEditor.Caption);
|
||||||
if theValue <> Field.AsDateTime then
|
if FormatDateTime(DisplayFormat, theValue) <> FormatDateTime(DisplayFormat, Field.AsDateTime) then
|
||||||
begin
|
begin
|
||||||
Field.DataSet.DisableControls;
|
Field.DataSet.DisableControls;
|
||||||
Field.DataSet.Edit;
|
Field.DataSet.Edit;
|
||||||
@ -457,7 +457,7 @@ begin
|
|||||||
if (not updated) then
|
if (not updated) then
|
||||||
begin
|
begin
|
||||||
theValue := StrToTime(CellEditor.Caption);
|
theValue := StrToTime(CellEditor.Caption);
|
||||||
if theValue <> Field.AsDateTime then
|
if FormatDateTime(DisplayFormat, theValue) <> FormatDateTime(DisplayFormat, Field.AsDateTime) then
|
||||||
begin
|
begin
|
||||||
Field.DataSet.DisableControls;
|
Field.DataSet.DisableControls;
|
||||||
Field.DataSet.Edit;
|
Field.DataSet.Edit;
|
||||||
@ -616,7 +616,7 @@ begin
|
|||||||
if (not updated) then
|
if (not updated) then
|
||||||
begin
|
begin
|
||||||
theValue := StrToDate(CellEditor.Caption);
|
theValue := StrToDate(CellEditor.Caption);
|
||||||
if theValue <> Field.AsDateTime then
|
if FormatDateTime(DisplayFormat, theValue) <> FormatDateTime(DisplayFormat, Field.AsDateTime) then
|
||||||
begin
|
begin
|
||||||
Field.DataSet.DisableControls;
|
Field.DataSet.DisableControls;
|
||||||
Field.DataSet.Edit;
|
Field.DataSet.Edit;
|
||||||
|
Reference in New Issue
Block a user