mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-16 16:08:14 +02:00
grids: scale native bitmaps. Issue #31771
ide: buildmodesmanager dialog: high-DPI check boxes. Issue #31771 git-svn-id: trunk@54918 -
This commit is contained in:
parent
68fbe369e0
commit
db2a57aa2c
@ -12,7 +12,7 @@ object BuildModesForm: TBuildModesForm
|
|||||||
OnDestroy = FormDestroy
|
OnDestroy = FormDestroy
|
||||||
OnShow = FormShow
|
OnShow = FormShow
|
||||||
Position = poScreenCenter
|
Position = poScreenCenter
|
||||||
LCLVersion = '1.7'
|
LCLVersion = '1.9.0.0'
|
||||||
object ButtonPanel1: TButtonPanel
|
object ButtonPanel1: TButtonPanel
|
||||||
Left = 6
|
Left = 6
|
||||||
Height = 32
|
Height = 32
|
||||||
@ -147,6 +147,7 @@ object BuildModesForm: TBuildModesForm
|
|||||||
FixedCols = 0
|
FixedCols = 0
|
||||||
Options = [goFixedVertLine, goFixedHorzLine, goVertLine, goHorzLine, goRangeSelect, goEditing, goRowSelect, goThumbTracking, goSmoothScroll]
|
Options = [goFixedVertLine, goFixedHorzLine, goVertLine, goHorzLine, goRangeSelect, goEditing, goRowSelect, goThumbTracking, goSmoothScroll]
|
||||||
TabOrder = 1
|
TabOrder = 1
|
||||||
|
TitleStyle = tsNative
|
||||||
OnCheckboxToggled = BuildModesCheckboxToggled
|
OnCheckboxToggled = BuildModesCheckboxToggled
|
||||||
OnDrawCell = BuildModesStringGridDrawCell
|
OnDrawCell = BuildModesStringGridDrawCell
|
||||||
OnSelection = BuildModesStringGridSelection
|
OnSelection = BuildModesStringGridSelection
|
||||||
|
@ -4439,6 +4439,8 @@ begin
|
|||||||
if (TitleStyle=tsNative) and not assigned(OnUserCheckboxBitmap) then begin
|
if (TitleStyle=tsNative) and not assigned(OnUserCheckboxBitmap) then begin
|
||||||
Details := ThemeServices.GetElementDetails(arrtb[AState]);
|
Details := ThemeServices.GetElementDetails(arrtb[AState]);
|
||||||
CSize := ThemeServices.GetDetailSize(Details);
|
CSize := ThemeServices.GetDetailSize(Details);
|
||||||
|
CSize.cx := MulDiv(CSize.cx, Font.PixelsPerInch, Screen.PixelsPerInch);
|
||||||
|
CSize.cy := MulDiv(CSize.cy, Font.PixelsPerInch, Screen.PixelsPerInch);
|
||||||
case bmpAlign of
|
case bmpAlign of
|
||||||
taCenter: PaintRect.Left := Trunc((aRect.Left + aRect.Right - CSize.cx)/2);
|
taCenter: PaintRect.Left := Trunc((aRect.Left + aRect.Right - CSize.cx)/2);
|
||||||
taLeftJustify: PaintRect.Left := ARect.Left + constCellPadding;
|
taLeftJustify: PaintRect.Left := ARect.Left + constCellPadding;
|
||||||
|
Loading…
Reference in New Issue
Block a user