mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-21 14:39:27 +02:00
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:
parent
9a2d8a270b
commit
4ddd6b9e3d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user