[9.0a] Dialog box scaling 300dpi can't fit Config. on 1080p

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
MaxX
Power Member
Power Member
Posts: 1029
Joined: 2012-03-23, 18:15 UTC
Location: UA

[9.0a] Dialog box scaling 300dpi can't fit Config. on 1080p

Post by *MaxX »

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.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

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
User avatar
MaxX
Power Member
Power Member
Posts: 1029
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

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...".
Last edited by MaxX on 2016-12-19, 16:48 UTC, edited 2 times in total.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Windows dialogs also have this problem on low resolution monitors... If a dialog doesn't fit on screen, you can't click cropped controls.
User avatar
MaxX
Power Member
Power Member
Posts: 1029
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

2MVV
2. Left side text becomes broken
Is it Windows' bug too?
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

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.
User avatar
Dalai
Power Member
Power Member
Posts: 9388
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

I think it's because of the higher font size of 24 that probably adds to the scaling.

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
User avatar
Ovg
Power Member
Power Member
Posts: 756
Joined: 2014-01-06, 16:26 UTC

Post by *Ovg »

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
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
Post Reply