Transparency problem when displaying tab icons in main menu

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
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Transparency problem when displaying tab icons in main menu

Post by *Lefteous »

When icons are displayed in Show/Custom view modes there is a transparency problem when highlithing the menu item. In this case there is no color defined for the view mode.

It's displayed correctly in the right click menu of tabs though.

http://lefteous.totalcmd.net/tc/bugs/tabicon_mainmenu_transparency.png



TC 9 beta 11, Win 7 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50856
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately that's something I cannot fix: I'm not using owner-drawing here, so I add the icons directly to the menu as checkmark icons (same for checked and unchecked). Windows does NOT support transparency in these icons when they are colored (only black+white), and does not support separate icons for line with cursor and line without.

The main menu uses owner-drawn menus and therefore doesn't have this problem. Switching the context menu to owner-drawn would cause all kinds of problems, someting I don't have the time to do, sorry.
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

Would it be easier to recreate the icons for use in the main menu?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50856
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I could, but why should I do that?
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

In order to solve the mentioned transparency problem.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50856
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

That wouldn't save the transparency problem, it would just show up in both places then.
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

I guess I just don't understand the technical implications. Maybe fix it when the context menu becomes owner-drawn as a long-term fix?
Post Reply