Menus and other things that don't look right
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Thanks, that helped a lot! It seems that TC currently always uses the "flat menu" form. I will use SystemParametersInfo on XP and newer to check that option, and draw the non-flat menu otherwise.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Please check with beta 4, and report if any don't look right! Note that the menu bar background on XP with themes is still using the default XP menu bar look.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
I checked it where I could, it didn't break anything and looks much better with Classic theme. There's only one small difference left, possible to miss if you're not looking for it and it's the text position when item is selected. Usually the selected text is moved one pixel right and one pixel down to give the impression of pressed button (for non-flat menus only).
Comparison: http://web.hisoftware.cz/sob/img/tc80b4x64-menu.gif
No major trouble of course, the frame vs. background made the most important difference, but it would make it 100%. :)
Comparison: http://web.hisoftware.cz/sob/img/tc80b4x64-menu.gif
No major trouble of course, the frame vs. background made the most important difference, but it would make it 100%. :)
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Thanks for confirming the fix! I will check about the moved text, are you sure that this is done in other programs? Currently I have themes on, and here it does NOT move.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
OK, I will try to add it. Does it happen in Lister too? In this case, the menu is drawn by Lazarus, not TC itself.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I see - so I will fix it just in the main window for now.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
The only remaining problem is Windows XP with themes on, ther I will have to draw the toolbar theme as background somehow.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
You did that in beta 1, so you could probably conditionally (NT 5.x, themes on) use that code...
And I found one more thing. This is how all betas look under XP64:
http://web.hisoftware.cz/sob/img/tc80x64-menu-winxp.png
With themes disabled, the color of items and empty space is different (except in beta 2 where menubar was drawn by Lazarus). It's small difference (rbg 224, 226, 235 / rgb 224, 223, 227), but it's there. It was previously discussed in Themes in menu bar (Beta 2). Beta 5 brought this behaviour also for themes enabled.
And I found one more thing. This is how all betas look under XP64:
http://web.hisoftware.cz/sob/img/tc80x64-menu-winxp.png
With themes disabled, the color of items and empty space is different (except in beta 2 where menubar was drawn by Lazarus). It's small difference (rbg 224, 226, 235 / rgb 224, 223, 227), but it's there. It was previously discussed in Themes in menu bar (Beta 2). Beta 5 brought this behaviour also for themes enabled.
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I could find a way now to draw the XP background theme. I will add it to the next beta.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Tested in XP x64, Luna theme: works excellent!
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
Using TC 11.03 / Win10 x64
Using TC 11.03 / Win10 x64