Hi,
i have a strange regression problem.
1) I set to "True" the ReadOnly property of a data field
2) doing so, the readOnly property of the relative TDBAdvEdit component is correctly set to "True"
3) then, i revert to "False" the ReadOnly property of the data field
4) the readOnly property of the TDBAdvEdit remains "True"
Debugging the code, i arrive here
procedure TDBAdvEdit.CMEnter(var Message: TWMNoParams);
begin
SetFocused(True);
inherited;
if Assigned(DataSource) and not FDataLink.CanModify then
inherited ReadOnly := true;
end;
begin
SetFocused(True);
inherited;
if Assigned(DataSource) and not FDataLink.CanModify then
inherited ReadOnly := true;
end;
where i see that ReadOnly property is set to True on 2), but is not set to False on 4).
I don't know when this thing has introduced, but i'm sure that is some sort of regression bug, it was functioning before.
Thanks, ciao !
Arnaldo