The tooltip font settings are ignored for truncated names

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

The tooltip font settings are ignored for truncated names

Post by *ts4242 »

Check Show filename in file list as tooltip if truncated
Uncheck Win32-style tips with file comments (if available)

You can test with these settings

Code: Select all

[Configuration]
Tips=3
FileTipWindows=1
Win32TipWindows=0
ResolutionSpecific=0
Aligned extension=1

[AllResolutions]
maximized=1
FontNameTip=Tahoma
FontSizeTip=24
FontStyleTip=700
FontCharsetTip=0
x=171
y=80
dx=1024
dy=568
Divider=500
DividerQuickView=500
DividerComments=500
Tabstops=76,79,138,28,790,93
User avatar
petermad
Power Member
Power Member
Posts: 14810
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I can confirm that the tooltip font is not shown correct when "Win32-style tips with file comments (if available)" is disabled.

In that case, here the tooltip is shown with the same font as the filelists - so I wouldn't say that the tooltip font setting is ignored - it is just not as chosen.


BTW - I think FontStyleTip should be changed to FontWeigthTip to match the parameter names for the other font settings. Usually font-style refers to values like italic or oblique, not to values like 400 or 700.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

petermad wrote:BTW - I think FontStyleTip should be changed to FontWeigthTip to match the parameter names for the other font settings. Usually font-style refers to values like italic or oblique, not to values like 400 or 700.
Agree with you.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This is not a bug! When you turn off the Win32-style tips, TC tries to show the tip as a longer version of the truncated name (overlayed to the name). It would be very odd to use a different font then.

Btw, if you don't use that option (FontNameTip etc.) you get something similar:
1. Win32-style tips turned on: TC uses the dialog box font for tips
2. Win32-style tips turned off: TC uses the file list font for tips
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14810
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

1. Win32-style tips turned on: TC uses the dialog box font for tips
2. Win32-style tips turned off: TC uses the file list font for tips
Yes - but why the difference.
02.03.12 Added: (Experimental) Change font for tooltips separately: wincmd.ini, resolution-specific section, FontNameTip, FontCharsetTip, FontSizeTip and FontStyleTip (TC uses the dialog box settings if these are not present) (32/64)
So the info in bold is only true if Win32-style tips turned on - maybe that should be added.

And I still think FontWeigthTip is more intuitive - especailly for a parameter that currently can not be set from the UI.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It's meant for users who need to see fixed character width text. It makes no sense to use that also for non-win32 style tips.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14810
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Parametername FontStyleTip is still used in favour of the more intuitive FontWeightTip in TC 8.0b24

Since this is an experimental feature I suggest to change it now in stead of later - users must expect changes during beta stage, but once TC gets final it is more critical to change things like this.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, I didn't saw that hint about FontWeightTip. I will change it.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14810
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Fixed in TC 8.0b25 - TC now uses FontWeightTip in stead of FontStyleTip :-)

But either this line in history.txt should be changed accordingly:
02.03.12 Added: (Experimental) Change font for tooltips separately: wincmd.ini, resolution-specific section, FontNameTip, FontCharsetTip, FontSizeTip and FontStyleTip (TC uses the dialog box settings if these are not present) (32/64)
Or a correction line should be added to latest history.

If the feature becomes permanent the new parameters should be added to the help file - and at the same time these missing parameters should also be added to the Help file:

FontNameDialog=
FontSizeDialog=
FontWeightDialog=
FontCharsetDialog=

CompFontName=
Compfontsize=
CompFontStyle=
CompCharSet=


When you think of it, the four Comp parameters should have been:
FontNameComp
FontSizeComp
FontWeightComp
FontCharsetComp
to comply with the names of the other font setting parameters, but off course that is too late to change now - it has been like this since TC 4.0 (1998).
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

petermad wrote:this line in history.txt should be changed accordingly:
But it was changed! It's now:
02.03.12 Added: (Experimental) Change font for tooltips separately: wincmd.ini, resolution-specific section, FontNameTip, FontCharsetTip, FontSizeTip and FontWeightTip (TC uses the dialog box settings if these are not present) (32/64)
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
petermad
Power Member
Power Member
Posts: 14810
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

But it was changed! It's now:
Indeed, it is - sorry I must have checked the wrong history.txt :oops:
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply