lcl: cleanup

git-svn-id: trunk@25248 -
This commit is contained in:
paul 2010-05-08 14:30:51 +00:00
parent 9b27609bab
commit 9077b5a1f7

View File

@ -5024,7 +5024,7 @@ begin
and (not (csDestroyingHandle in ControlState)) and (not (csDestroyingHandle in ControlState))
and (not (csDestroying in ComponentState)) and (not (csDestroying in ComponentState))
then begin then begin
if (Form <> nil) and not Form.SetFocusedControl(Self) then Exit; if not Form.SetFocusedControl(Self) then Exit;
Message.Result := 0; Message.Result := 0;
end; end;
end; end;
@ -5306,7 +5306,7 @@ end;
------------------------------------------------------------------------------} ------------------------------------------------------------------------------}
procedure TWinControl.SetFocus; procedure TWinControl.SetFocus;
var var
Form : TCustomForm; Form: TCustomForm;
begin begin
{$IFDEF VerboseFocus} {$IFDEF VerboseFocus}
DebugLn('[TWinControl.SetFocus] ',Name,':',ClassName,' Visible=',dbgs(Visible),' HandleAllocated=',dbgs(HandleAllocated)); DebugLn('[TWinControl.SetFocus] ',Name,':',ClassName,' Visible=',dbgs(Visible),' HandleAllocated=',dbgs(HandleAllocated));