mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-08 14:27:15 +01:00
win32: check list: scale check box (for multi-monitor)
git-svn-id: trunk@54227 -
This commit is contained in:
parent
d8902074d4
commit
3e2980a1b6
@ -213,6 +213,8 @@ class procedure TWin32WSCustomCheckListBox.DefaultWndHandler(
|
||||
|
||||
Details := ThemeServices.GetElementDetails(ThemeStateMap[CheckListBox.State[Data^.ItemID], Enabled]);
|
||||
sz := ThemeServices.GetDetailSize(Details);
|
||||
sz.cx := MulDiv(sz.cx, CheckListBox.Font.PixelsPerInch, ScreenInfo.PixelsPerInchX);
|
||||
sz.cy := MulDiv(sz.cy, CheckListBox.Font.PixelsPerInch, ScreenInfo.PixelsPerInchY);
|
||||
ARect := Bounds((ARect.Left + ARect.Right - sz.cx) div 2, (ARect.Top + ARect.Bottom - sz.cy) div 2,
|
||||
sz.cx, sz.cy);
|
||||
OffsetRect(ARect, 1, 1);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user