mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-11 02:48:31 +02:00
lcl: reset hint window region when color is changed to non-default
git-svn-id: trunk@41502 -
This commit is contained in:
parent
1e4301f4d7
commit
aab787525a
@ -846,6 +846,7 @@ type
|
||||
procedure WMNCHitTest(var Message: TLMessage); message LM_NCHITTEST;
|
||||
procedure DoShowWindow; override;
|
||||
procedure UpdateRegion;
|
||||
procedure SetColor(Value: TColor); override;
|
||||
public
|
||||
constructor Create(AOwner: TComponent); override;
|
||||
destructor Destroy; override;
|
||||
|
@ -90,7 +90,15 @@ begin
|
||||
ARect := ClientRect;
|
||||
Rgn := ThemeServices.GetDetailRegion(Canvas.Handle, Details, ARect);
|
||||
SetWindowRgn(Handle, Rgn, False);
|
||||
end;
|
||||
end
|
||||
else
|
||||
SetWindowRgn(Handle, 0, False);
|
||||
end;
|
||||
|
||||
procedure THintWindow.SetColor(Value: TColor);
|
||||
begin
|
||||
inherited SetColor(Value);
|
||||
UpdateRegion;
|
||||
end;
|
||||
|
||||
function THintWindow.GetDrawTextFlags: Cardinal;
|
||||
|
Loading…
Reference in New Issue
Block a user