View Issue Details

IDProjectCategoryView StatusLast Update
0035806LazarusIDEpublic2020-02-03 22:56
ReporterSven Barth Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformX86_64OSWindows NT 
Product Version2.1 (SVN) 
Summary0035806: AnchorDocking: size of close buttons very small on High DPI
DescriptionOn a High DPI system the size of the close buttons is very small and thus they're kinda hard to hit (see screenshot).
TagsNo tags attached.
Fixed in Revision
LazTarget
WidgetsetWin32/Win64
Attached Files

Activities

Sven Barth

2019-07-06 16:21

manager  

lazarus-anchordocking-close.png (91,664 bytes)   
lazarus-anchordocking-close.png (91,664 bytes)   

Sven Barth

2020-02-03 22:56

manager   ~0120865

I've attached a patch that improves this. The buttons themselves are now nicer sized, however the X is still rather small...
anchordocking.patch (621 bytes)   
Index: anchordocking.pas
===================================================================
--- anchordocking.pas	(revision 62608)
+++ anchordocking.pas	(working copy)
@@ -6527,6 +6527,8 @@
     inc(PreferredWidth,2);
     inc(PreferredHeight,2);
     {$ENDIF}
+    PreferredWidth:=ScaleDesignToForm(PreferredWidth);
+    PreferredHeight:=ScaleDesignToForm(PreferredHeight);
   end;
 end;
 
@@ -6566,6 +6568,8 @@
     inc(PreferredWidth,2);
     inc(PreferredHeight,2);
     {$ENDIF}
+    PreferredWidth:=ScaleDesignToForm(PreferredWidth);
+    PreferredHeight:=ScaleDesignToForm(PreferredHeight);
   end;
 end;
 
anchordocking.patch (621 bytes)   

Issue History

Date Modified Username Field Change
2019-07-06 16:21 Sven Barth New Issue
2019-07-06 16:21 Sven Barth File Added: lazarus-anchordocking-close.png
2020-02-03 22:56 Sven Barth File Added: anchordocking.patch
2020-02-03 22:56 Sven Barth File Added: lazarus-anchordocking-close-patched.png
2020-02-03 22:56 Sven Barth Note Added: 0120865