Solved TC 10.00/TC10.5b3 Buttonbar with Popup Menü

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

Moderators: white, Hacker, petermad, Stefan2

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC 10.00/TC10.5b3 Buttonbar with Popup Menü

Post by *ghisler(Author) »

I can still reproduce it in Dark mode. Most visible with icon size 32 or larger and Small icons disabled.
Do you mean the icon size in the button bar? Or in the file lists?
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14796
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: TC 10.00/TC10.5b3 Buttonbar with Popup Menü

Post by *petermad »

In the button bar
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: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC 10.00/TC10.5b3 Buttonbar with Popup Menü

Post by *ghisler(Author) »

Just tried that, but unfortunately the context menus appear just fine.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14796
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: TC 10.00/TC10.5b3 Buttonbar with Popup Menü

Post by *petermad »

2ghisler(Author)

Ok - try this:
1. Download https://madsenworld.dk/tcmd/testbuttonbar.zip
2. Unpack the 3 files to the directory where you have your wincmd.ini file.
3. Start a new instance of TC using the test.ini file.
4. Click on the rightmost button in the button bar (Internal commands button bar).
5. Right-click on any item in the button bar menu.

You will see that more or less of the characters in the right side of the context menu is cut off.

This ONLY applies to 64bit TC
Tested under Windows 10 and 7.
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
white
Power Member
Power Member
Posts: 4619
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: TC 10.00/TC10.5b3 Buttonbar with Popup Menü

Post by *white »

Confirmed.

And why is this context menu a different style (no rounded corners and white thick border)?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC 10.00/TC10.5b3 Buttonbar with Popup Menü

Post by *ghisler(Author) »

Thanks, I was able to reproduce it now! The border style is wrong because subclassing of the menu failed. This is also the reason it isn't sized correctly. It doesn't do this with my own ini. I will check in the debugger why it fails only with these settings.
Author of Total Commander
https://www.ghisler.com
User avatar
vianova
Member
Member
Posts: 103
Joined: 2011-12-06, 18:35 UTC
Location: Hamburg

Re: TC 10.00/TC10.5b3 Buttonbar with Popup Menü

Post by *vianova »

Thanks Christian,
Issue resolved in TC 10.5b4
#425 Personal licence me and TBO are the same user
16 GB Win 10 Pro 21H2 64 Bit with TC 10.51 (32/64 Bit)
User avatar
petermad
Power Member
Power Member
Posts: 14796
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Solved TC 10.00/TC10.5b3 Buttonbar with Popup Menü

Post by *petermad »

Fixed in TC 10.50b4 but only under Windows 10 - Under Windows 7 the context menu is not dark themed anymore - but neither is any other context menu in Dark mode under Windows 7, so it is actually weird that it was themed for buttonbar submenu items before.
Last edited by petermad on 2022-05-04, 19:44 UTC, edited 1 time in total.
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
white
Power Member
Power Member
Posts: 4619
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Solved TC 10.00/TC10.5b3 Buttonbar with Popup Menü

Post by *white »

Tested OK using TC10.50b4.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Solved TC 10.00/TC10.5b3 Buttonbar with Popup Menü

Post by *ghisler(Author) »

Under Windows 7 the context menu is not dark themed anymore - but neither is any other context menu in Dark mode under Windows 7, so it is actually weird that it was themed for buttonbar submenu items before.
Indeed I'm using the same menu now as when right clicking directly on a button. The difference is that this new menu is drawn by Windows itself, while the old one with the odd border colors was owner drawn (by my own code).

The one drawn by Windows itself can be set to dark mode on Windows 10, but Windows 7 doesn't have the concept of a dark mode.
The one drawn by TC can be drawn manually in dark colors, but the border is still drawn by Windows. It's difficult to correctly size this and overdraw the borders, so I decided to let Windows draw the menu instead.
Author of Total Commander
https://www.ghisler.com
Post Reply