LCL: Remove earlier stupid code made by myself.

git-svn-id: trunk@47929 -
This commit is contained in:
juha 2015-02-21 00:19:48 +00:00
parent f5a39a509c
commit 09da89b659
2 changed files with 5 additions and 6 deletions

View File

@ -853,7 +853,7 @@ type
protected
class procedure WSRegisterClass; override;
procedure WMNCHitTest(var Message: TLMessage); message LM_NCHITTEST;
procedure ActivateSub(InvalidateNeeded: Boolean);
procedure ActivateSub;
procedure DoShowWindow; override;
procedure UpdateRegion;
procedure SetColor(Value: TColor); override;

View File

@ -202,15 +202,13 @@ begin
Result.CY := 25;
end;
procedure THintWindow.ActivateSub(InvalidateNeeded: Boolean);
procedure THintWindow.ActivateSub;
begin
SetBounds(FHintRect.Left, FHintRect.Top,
FHintRect.Right - FHintRect.Left, FHintRect.Bottom - FHintRect.Top);
Visible := True;
FAutoHideTimer.Enabled := False;
FAutoHideTimer.Enabled := FAutoHide;
if InvalidateNeeded then
Invalidate;
end;
procedure THintWindow.ActivateHint(const AHint: String);
@ -223,7 +221,7 @@ begin
if Caption<>AHint then
Invalidate;
Caption := AHint;
ActivateSub(Visible and (Caption <> AHint));
ActivateSub;
finally
FActivating := False;
end;
@ -356,7 +354,8 @@ begin
FActivating := True;
try
Assert(ControlCount > 0, 'THintWindowRendered.ActivateRendered: ControlCount = 0');
ActivateSub(True);
ActivateSub;
Invalidate;
finally
FActivating := False;
end;