View Issue Details

IDProjectCategoryView StatusLast Update
0031829LazarusLCLpublic2017-05-20 10:26
Reporterwp Assigned ToOndrej Pokorny  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version1.9 (SVN) 
Summary0031829: [HiDPI] Treeview expand icons not scaling
DescriptionThe expand icons of TTreeview are not scaling. The attached screenshot show treeviews with dummy data: the treeview in the background windows belongs to my virtual machine with Win7 at 150%, the treeview in the foreground to my standard Win10 at 100%. The size of the treeview expand icons is the same in both windows.
TagsNo tags attached.
Fixed in Revision
LazTarget-
WidgetsetWin32/Win64
Attached Files

Activities

wp

2017-05-17 17:36

developer  

treeview_expandicons.png (9,655 bytes)   
treeview_expandicons.png (9,655 bytes)   

Ondrej Pokorny

2017-05-17 21:10

developer   ~0100369

Please upload a simple test project. TTreeView should be high-dpi aware already. You can see it from svn log for treeview.inc.

(Although I need to rewrite it the same way I did with grids today.)

wp

2017-05-17 22:46

developer  

wp

2017-05-17 23:09

developer   ~0100376

Last edited: 2017-05-17 23:10

View 2 revisions

Demo added (just a form with a treeview containing some dummy nodes. ExpandSignType set to tvestPlusMinus) --> If I overlay (on the same screen) the output of my standard windows with 100% on the output of the windows in the VM at 150% I see that Plus/Minus icons are the same size, i.e. not scaled).

However, if ExpandSignType is set to tvestTheme and if "use manifest support" for the application is turned OFF (!) in the project settings then scaling seems to work (see screen shot treeview_expand_icons_no_themes.png, foreground window is 100%, background window is 150%) although the scaling factor of the expand icons looks more like 200% than 150%.

wp

2017-05-17 23:17

developer  

wp

2017-05-17 23:18

developer  

Ondrej Pokorny

2017-05-20 07:57

developer   ~0100525

Fixed. Non-themed node icons were not scaled.

wp

2017-05-20 10:26

developer   ~0100532

Thank you

Issue History

Date Modified Username Field Change
2017-05-17 17:36 wp New Issue
2017-05-17 17:36 wp Status new => assigned
2017-05-17 17:36 wp Assigned To => Ondrej Pokorny
2017-05-17 17:36 wp File Added: treeview_expandicons.png
2017-05-17 21:10 Ondrej Pokorny Note Added: 0100369
2017-05-17 22:46 wp File Added: 31829_treeview_expandicons.zip
2017-05-17 23:08 wp File Added: treeview_expandicons_no_themes.png
2017-05-17 23:09 wp Note Added: 0100376
2017-05-17 23:10 wp Note Edited: 0100376 View Revisions
2017-05-17 23:16 wp File Deleted: treeview_expandicons_no_themes.png
2017-05-17 23:17 wp File Added: treeview_expandicons_no_themes1.png
2017-05-17 23:18 wp File Added: 31829_treeview_expandicons_no_themes.zip
2017-05-20 07:57 Ondrej Pokorny Note Added: 0100525
2017-05-20 07:57 Ondrej Pokorny Status assigned => resolved
2017-05-20 07:57 Ondrej Pokorny Resolution open => fixed
2017-05-20 10:26 wp Note Added: 0100532
2017-05-20 10:26 wp Status resolved => closed