You are not logged in.
Pages: 1
Hi,
I already found a small bug.
In TRecordEditForm.WMUser you set Focus to first Component.
In my Record the first property type is sftCreateTime.
So fFieldComponents[0] is nil ==> AV
if fFieldComponents<>nil then
fFieldComponents[0].SetFocus; <<== AV
My fix:
procedure TRecordEditForm.WMUser(var Msg: TMessage);
var i: integer;
begin
for i := 0 to Scroll.ControlCount-1 do
Scroll.Controls[i].Repaint;
if fFieldComponents<>nil then
for i := low(fFieldComponents) to high(fFieldComponents) do
if assigned(fFieldComponents[i]) then
begin
fFieldComponents[i].SetFocus;
break;
end;
end;
Offline
I've fixed the problem.
See http://synopse.info/fossil/info/ac541f1330
Thanks for your feedback and proposal!
Offline
Pages: 1