mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 10:47:58 +02:00
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:
parent
204d57cafa
commit
09a85e4fc9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user