TC 32-bit - wrong menus height

English support forum

Moderators: Hacker, petermad, Stefan2, white

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

TC 32-bit - wrong menus height

Post by *MaxX »

Go to
Configuration -> Icons -> Show icons for commands in main menu
Turn this off.

Now restart TC 32-bit on Win 7 or Win 10 and open any upper menus. The distance between text lines is much bigger than should be.
Also you may compare: 64 bit version works fine and has no problem there.
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: TC 32-bit - wrong menus height

Post by *petermad »

I Cannot confirm this with TC 10.52rc5 32bit under Windows 7

Actually I see the opposite - a menu that shows 36 items with Icons, shows 37 items in the same space without icons (menu that is higher than the available screen height).

Could you provide a couple of screenshots?
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
MaxX
Power Member
Power Member
Posts: 1166
Joined: 2012-03-23, 18:15 UTC
Location: UA

Re: TC 32-bit - wrong menus height

Post by *MaxX »

Win 7 Classic - https://i.ibb.co/C5tsSvj/image.png - wrong menus height in x64 (suddenly!)
Win 7 Aero - https://i.ibb.co/ym9VG4v/image.png - wrong menus height in x32
Win 10 21H2 - https://i.ibb.co/b2ZZb6M/image.png - wrong menus height in x32

I've noticed this for all 10.x versions. May be 9.x are affected too, I don't know 'cause didn't test them.
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC 32-bit - wrong menus height

Post by *ghisler(Author) »

TC 32-bit turns off owner-drawn menus when you disable icons. So what you see then is the native Windows menu control. It does indeed have higher menu items, don't ask me why. 64-bit uses the build-in Lazarus menus, which are already owner-drawn menus, so it uses that implementation's menu item height. There is no "right" height here, it's just different methods to calculate them based on font size.
Author of Total Commander
https://www.ghisler.com
User avatar
MaxX
Power Member
Power Member
Posts: 1166
Joined: 2012-03-23, 18:15 UTC
Location: UA

Re: TC 32-bit - wrong menus height

Post by *MaxX »

There's no reason to have such a big space between text lines. I have 720p monitors on some PCs and this heights are not comfortable.
Is there any workaround to fix bigger heights? Please...
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
Elwin_Ransom
Junior Member
Junior Member
Posts: 38
Joined: 2022-07-31, 18:14 UTC
Location: Perelandra

Re: TC 32-bit - wrong menus height

Post by *Elwin_Ransom »

2MaxX
any workaround
Well, for example, this hack (see last post in thread)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC 32-bit - wrong menus height

Post by *ghisler(Author) »

Is there any workaround to fix bigger heights?
It's a Windows-generated thing, so if there is any way to make them smaller, it would be via some registry tweak I don't know of.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2981
Joined: 2020-01-18, 04:03 UTC

Re: TC 32-bit - wrong menus height

Post by *Fla$her »

This is done not through the registry, but through the bottom element of the first drop-down list of this dialog:

Code: Select all

rundll32.exe shell32.dll Control_RunDLL desk.cpl,desc,
The smaller the font size, the smaller the height of the menu bar can be set. The font name also affects this.
Overquoting is evil! 👎
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: TC 32-bit - wrong menus height

Post by *petermad »

Fla$her wrote: 2022-10-26, 00:28 UTC This is done not through the registry, but through the bottom element of the first drop-down list of this dialog:

Code: Select all

rundll32.exe shell32.dll Control_RunDLL desk.cpl,desc,
The smaller the font size, the smaller the height of the menu bar can be set. The font name also affects this.
The dialog you refer to is not available after Windows 7 and the botttom element depends on the locale.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC 32-bit - wrong menus height

Post by *ghisler(Author) »

I found a tool which claims to be able to change the menu item height:
WinAero Tweaker
Author of Total Commander
https://www.ghisler.com
User avatar
Hacker
Moderator
Moderator
Posts: 13141
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: TC 32-bit - wrong menus height

Post by *Hacker »

Here are more details as to how WinAero Tweaker does it. It seems to only affect the height of the top menu row, though, as in, only the one line on the screen which says "Files Mark Commands Net Show Configuration Start Help", there is no word about the height of the actual items which show up when you click one of these menu headers.

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC 32-bit - wrong menus height

Post by *ghisler(Author) »

What about the menu font? Isn't that the same for the menu bar and menu items?
Author of Total Commander
https://www.ghisler.com
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6950
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: TC 32-bit - wrong menus height

Post by *Horst.Epp »

Yes, these fonts are normaly the same.
I make such changes with the AdvancedSystemFontChanger.
I can set the font, size ,style and bold.
This allows much more than the Aero Tweaker.

It can set:
Title bar
Menu
Message box
Secondary title
Icon
Status bar

https://www.wintools.info/index.php/advanced-system-font-changer
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
Fla$her
Power Member
Power Member
Posts: 2981
Joined: 2020-01-18, 04:03 UTC

Re: TC 32-bit - wrong menus height

Post by *Fla$her »

petermad wrote: 2022-10-26, 08:35 UTCThe dialog you refer to is not available after Windows 7
It's a pity.
petermad wrote: 2022-10-26, 08:35 UTCand the botttom element depends on the locale.
How?
Overquoting is evil! 👎
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: TC 32-bit - wrong menus height

Post by *petermad »

2Fla$her
petermad wrote: ↑Wednesday 26-10-2022, 10:35:58
and the botttom element depends on the locale.

How?
The elements are sorted alphabetically, and does not have the same name in different languages: Danish: https://madsenworld.dk/tcmd/desc.png - here the bottom element is "Værktøjstip" (Tooltip), and I guess you where referring to what is here called "Menu" (highlighted).
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply