mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-22 18:59:08 +02:00
lcl: cleanup
git-svn-id: trunk@25248 -
This commit is contained in:
parent
9b27609bab
commit
9077b5a1f7
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user