LCL, dbgrid, enable OnFieldEditMask with default mask by Field.EditMask, patch by José Mejuto, issue #21362

git-svn-id: trunk@46510 -
This commit is contained in:
jesus 2014-10-10 21:14:08 +00:00
parent 204d57cafa
commit 09a85e4fc9

View File

@ -2794,12 +2794,9 @@ begin
if FDataLink.Active then begin
aField := GetFieldFromGridColumn(aCol);
if (aField<>nil) then begin
{$ifdef EnableFieldEditMask}
// enable following line if TField gets in the future a MaskEdit property
//Result := aField.EditMask;
Result := aField.EditMask;
if assigned(OnFieldEditMask) then
OnFieldEditMask(Self, AField, Result);
{$endif}
end;
end;
end;