Ampersand centers tab name

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Hacker
Moderator
Moderator
Posts: 13141
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Ampersand centers tab name

Post by *Hacker »

Hi all,
This is an older bug / funny behavior, but still applies to the 8.5 betas.
1. Have folder tabs shown
2. Create a folder with a name longer than the width of one tab
3. The name is show left-aligned in the tab header
4. Change the folder name (or just rename the tab) and add an ampersand sign (&) anywhere
5. The name is now centered

Not sure if this is expected behavior, a bug in the control or just some quirk which might actually be useful.

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:

Post by *ghisler(Author) »

This isn't in my control. TC just sets the title, and the Windows Tab control draws it.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

How do you do it? I can't make it centered, when folder name is long, it is truncated and "..." is appended, so entire tab header is full of letters with or without ampersand...
User avatar
Hacker
Moderator
Moderator
Posts: 13141
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Christian,
I know it isn't. I was just wondering if there maybe is a property to change this behavior and if you can actually reproduce it.

MVV,
Funny, I never get "..." in tabs. From the Folder tabs settings I have these checked:
[x] All tabs have same width
[x] Confirm close all tabs
[x] Ctrl+Up opens new tab in foreground
[x] Show locked tabs with an asterisk *
[x] Activate target panel when clicking on one of its Tabs

All the others are unchecked.
And yes, the tab header is full of letters, but if the tab name is "1234567890" then without ampersand when there is not enough space "13245" is shown and with ampersand "34567".

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
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2Hacker

I can confirm this with both 32bit and 64bit TC under Windows 7 and Windows 8.1 but NOT with 32bit TC under Windows XP.

It only occurs if "All tabs have same width" is enabled.

It also only happens with Aero theme - NOT with Luna or Classic theme.
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
Hacker
Moderator
Moderator
Posts: 13141
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

petermad,
Funny, thank you.

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

Post by *MVV »

Ah, I'm always using classic theme so probably that was the reason why I didn't see it.

Hacker, TC truncates tab titles with "..." if you limit tab title width.
User avatar
Hacker
Moderator
Moderator
Posts: 13141
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

MVV,
I see, thanks.

Has anyone seen this behavior in another program that uses a tab control?

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
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I have a Luna hack theme for Windows 7 - the bug is also present there.
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
Hacker
Moderator
Moderator
Posts: 13141
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

petermad,
Thanks, so I guess there is nothing to be done about it short of using a custom control.

Christian,
Let's move to the English forum? Or behavior that won't be changed perhaps?

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:

Post by *ghisler(Author) »

I will move it to "behavior that won't be changed" when the next beta is released.
Author of Total Commander
https://www.ghisler.com
Post Reply