mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 23:29:16 +02:00
LCL: painting background of hint window
git-svn-id: trunk@10728 -
This commit is contained in:
parent
f7020ac77c
commit
41955d1b8a
@ -685,6 +685,7 @@ begin
|
|||||||
end;}
|
end;}
|
||||||
|
|
||||||
FHintWindow.Color := HintInfo.HintColor;
|
FHintWindow.Color := HintInfo.HintColor;
|
||||||
|
//DebugLn(['TApplication.ShowHintWindow FHintWindow.Color=',dbgs(FHintWindow.Color),' HintInfo.HintColor=',dbgs(HintInfo.HintColor)]);
|
||||||
|
|
||||||
//debugln('TApplication.ShowHintWindow B HintWinRect=',dbgs(HintWinRect),' HintStr="',DbgStr(HintInfo.HintStr),'"');
|
//debugln('TApplication.ShowHintWindow B HintWinRect=',dbgs(HintWinRect),' HintStr="',DbgStr(HintInfo.HintStr),'"');
|
||||||
FHintWindow.ActivateHint(HintWinRect,HintInfo.HintStr);
|
FHintWindow.ActivateHint(HintWinRect,HintInfo.HintStr);
|
||||||
|
@ -81,7 +81,9 @@ var
|
|||||||
begin
|
begin
|
||||||
ARect := ClientRect;
|
ARect := ClientRect;
|
||||||
Canvas.Brush.Color := Color;
|
Canvas.Brush.Color := Color;
|
||||||
|
//DebugLn(['THintWindow.Paint Canvas.Brush.Color=',dbgs(Canvas.Brush.Color)]);
|
||||||
Canvas.Pen.Width := 1;
|
Canvas.Pen.Width := 1;
|
||||||
|
Canvas.FillRect(ARect);
|
||||||
DrawEdge(Canvas.Handle, ARect, BDR_RAISEDOUTER, BF_RECT);
|
DrawEdge(Canvas.Handle, ARect, BDR_RAISEDOUTER, BF_RECT);
|
||||||
InflateRect(ARect,-2*HintBorderWidth,-2*HintBorderWidth);
|
InflateRect(ARect,-2*HintBorderWidth,-2*HintBorderWidth);
|
||||||
DrawText(Canvas.GetUpdatedHandle([csFontValid]),
|
DrawText(Canvas.GetUpdatedHandle([csFontValid]),
|
||||||
|
Loading…
Reference in New Issue
Block a user