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:
parent
efbe37b5a8
commit
ddc1b15861
@ -296,7 +296,7 @@ begin
|
||||
if (not updated) then
|
||||
begin
|
||||
theValue := StrToDateTime(CellEditor.Caption);
|
||||
if theValue <> Field.AsDateTime then
|
||||
if FormatDateTime(DisplayFormat, theValue) <> FormatDateTime(DisplayFormat, Field.AsDateTime) then
|
||||
begin
|
||||
Field.DataSet.DisableControls;
|
||||
Field.DataSet.Edit;
|
||||
@ -457,7 +457,7 @@ begin
|
||||
if (not updated) then
|
||||
begin
|
||||
theValue := StrToTime(CellEditor.Caption);
|
||||
if theValue <> Field.AsDateTime then
|
||||
if FormatDateTime(DisplayFormat, theValue) <> FormatDateTime(DisplayFormat, Field.AsDateTime) then
|
||||
begin
|
||||
Field.DataSet.DisableControls;
|
||||
Field.DataSet.Edit;
|
||||
@ -616,7 +616,7 @@ begin
|
||||
if (not updated) then
|
||||
begin
|
||||
theValue := StrToDate(CellEditor.Caption);
|
||||
if theValue <> Field.AsDateTime then
|
||||
if FormatDateTime(DisplayFormat, theValue) <> FormatDateTime(DisplayFormat, Field.AsDateTime) then
|
||||
begin
|
||||
Field.DataSet.DisableControls;
|
||||
Field.DataSet.Edit;
|
||||
|
Loading…
Reference in New Issue
Block a user