LCL: FindNextControl returns first control, if the current control is not in the taborder list (fixes #9390) from Gerard Visent

git-svn-id: trunk@11765 -
This commit is contained in:
vincents 2007-08-09 20:51:31 +00:00
parent 061c5c6ee3
commit fd3816388c

View File

@ -2800,7 +2800,12 @@ begin
//end;
If List.Count > 0 then begin
J := List.IndexOf(CurrentControl);
if J<0 then exit;
if J<0 then begin
if GoForward then
J := List.Count - 1
else
J := 0;
end;
//DebugLn('TWinControl.FindNextControl A ',DbgSName(CurrentControl),' ',dbgs(J),
// ' GoForward='+dbgs(GoForward)+' CheckTabStop='+dbgs(CheckTabStop)+' CheckParent='+dbgs(CheckParent));
I := J;