LCL-Win: Fix client rect position of group box on Windows. Issue #25203, patch from Yury Sidorov

git-svn-id: trunk@46245 -
This commit is contained in:
juha 2014-09-16 18:16:46 +00:00
parent 9a2d8a270b
commit 4ddd6b9e3d

View File

@ -710,8 +710,9 @@ begin
// -> Adjust the position
// add the upper frame with the caption
DC := Windows.GetDC(Handle);
SelectObject(DC, TheWinControl.Font.Handle);
Windows.GetTextMetrics(DC, TM);
ORect.Top := TM.TMHeight;
ORect.Top := TM.TMHeight + 3;
Windows.ReleaseDC(Handle, DC);
// add the left, right and bottom frame borders
ORect.Left := 2;