[9.0a] Dialog box scaling 300dpi can't fit Config. on 1080p
Moderators: Hacker, petermad, Stefan2, white
[9.0a] Dialog box scaling 300dpi can't fit Config. on 1080p
The bug, found by russian user in the web.
I can reproduce it too.
Win 7 SP1 x64 + classic theme
TC 9.0a (both 32 and 64 bit)
Screen resolution 1920x1080
Go to TC -> Configuration -> Fonts -> Dialog box scaling.
Then set 250 dpi (or more) and press Apply.
Now Ok/Cancel/Help/Apply can't fit on the screen to be shown.
No turn back.
I can reproduce it too.
Win 7 SP1 x64 + classic theme
TC 9.0a (both 32 and 64 bit)
Screen resolution 1920x1080
Go to TC -> Configuration -> Fonts -> Dialog box scaling.
Then set 250 dpi (or more) and press Apply.
Now Ok/Cancel/Help/Apply can't fit on the screen to be shown.
No turn back.
When you already have pressed Apply, Cancel won't help because settings are already saved. What will help is setting another DPI value and pressing e.g. Enter key (which acts as OK). 
But I agree that TC shouldn't allow setting too high DPI, it should limit it to some constant value, or to some value that depends on screen height.
BTW I still see OK/Cancel buttons with 250 DPI on full-hd monitor (though I'm using classic theme).
BTW2, it is funny, up/down control is realized as a scrollbar component and it has large scrolling area on high DPI!
I don't really think that up/down control is useful for combobox (especially when scrolling down increases the value) while in other places scrolling with mouse wheel would be nice (in tabstop settings). Unfortunately Delphi has no standard up/down control while it is a standard Windows component.

But I agree that TC shouldn't allow setting too high DPI, it should limit it to some constant value, or to some value that depends on screen height.
BTW I still see OK/Cancel buttons with 250 DPI on full-hd monitor (though I'm using classic theme).
BTW2, it is funny, up/down control is realized as a scrollbar component and it has large scrolling area on high DPI!

I don't really think that up/down control is useful for combobox (especially when scrolling down increases the value) while in other places scrolling with mouse wheel would be nice (in tabstop settings). Unfortunately Delphi has no standard up/down control while it is a standard Windows component.
- ghisler(Author)
- Site Admin
- Posts: 50550
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I can still reach the dropdown combobox even at 300dpi, and then select 96 and press ENTER to make the box smaller.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Screenshot:
http://fotohost.by/images/2016/12/19/0be1a0.png
1. No "Ok/Cancel..." buttons
2. Left side text becomes broken
When you have only touchscreen (no keyboard/mouse), there's no way back to set 96.
2MVV
Try 300 dpi (for 1080p) to see.
2ghisler(Author)
The bug is not in dropdown combobox. Just look bottom side of the screenshot. There's no button bar "Ok/Cancel...".
http://fotohost.by/images/2016/12/19/0be1a0.png
1. No "Ok/Cancel..." buttons
2. Left side text becomes broken
When you have only touchscreen (no keyboard/mouse), there's no way back to set 96.
2MVV
Try 300 dpi (for 1080p) to see.
2ghisler(Author)
The bug is not in dropdown combobox. Just look bottom side of the screenshot. There's no button bar "Ok/Cancel...".
Last edited by MaxX on 2016-12-19, 16:48 UTC, edited 2 times in total.
2MVV
Is it Windows' bug too?2. Left side text becomes broken
Ukrainian Total Commander Translator. Feedback and discuss.
Well, I never use Windows font scaling just because most WinAPI GUI dialogs look ugly with it, and TC too because Delphi uses standard Windows controls... Perhaps you use both TC scaling and Windows scaling because I see no cropped text in list of configuration pages even when I set TC scaling to 500 DPI.
I don't know if it can be properly tweaked, but with Windows fonts become larger while most metrics aren't changed (checkbox size, listbox item height, scrollbar button height etc), and this causes huge mess.
I don't know if it can be properly tweaked, but with Windows fonts become larger while most metrics aren't changed (checkbox size, listbox item height, scrollbar button height etc), and this causes huge mess.
I think it's because of the higher font size of 24 that probably adds to the scaling.
Regards
Dalai
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
ghisler(Author) wrote:
"...the dialog boxes are NOT resized with the fonts. I tried this once, and it looked extremely ugly with some fonts (especially fixed pitch fonts). Just use a higher DPI setting and keep the font size at 8 or 9."
http://ghisler.ch/board/viewtopic.php?p=315985#315985
"...the dialog boxes are NOT resized with the fonts. I tried this once, and it looked extremely ugly with some fonts (especially fixed pitch fonts). Just use a higher DPI setting and keep the font size at 8 or 9."
http://ghisler.ch/board/viewtopic.php?p=315985#315985
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 11.01 x64, Windows 7 SP1 x64
#259941, TC 11.01 x64, Windows 7 SP1 x64