LCL: painting background of hint window

git-svn-id: trunk@10728 -
This commit is contained in:
mattias 2007-03-09 00:42:23 +00:00
parent f7020ac77c
commit 41955d1b8a
2 changed files with 3 additions and 0 deletions

View File

@ -685,6 +685,7 @@ begin
end;}
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),'"');
FHintWindow.ActivateHint(HintWinRect,HintInfo.HintStr);

View File

@ -81,7 +81,9 @@ var
begin
ARect := ClientRect;
Canvas.Brush.Color := Color;
//DebugLn(['THintWindow.Paint Canvas.Brush.Color=',dbgs(Canvas.Brush.Color)]);
Canvas.Pen.Width := 1;
Canvas.FillRect(ARect);
DrawEdge(Canvas.Handle, ARect, BDR_RAISEDOUTER, BF_RECT);
InflateRect(ARect,-2*HintBorderWidth,-2*HintBorderWidth);
DrawText(Canvas.GetUpdatedHandle([csFontValid]),