| View previous topic :: View next topic |
| Author |
Message |
Flint Power Member


Joined: 27 Oct 2003 Posts: 2867 Location: Moscow, Russia
|
Posted: Mon Jun 25, 2012 10:17 am Post subject: [x64] Two-lined main menu has wrong background |
|
|
Make the main TC window more narrow so that the "Help" menu item moved to the second line. Then background of this second line is drawn incorrectly, see screenshot:
http://gora.7zsfx.info/test/tc801rc1.PNG
In 32-bit version background is fine. _________________ Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, other stuff!
Using TC 8.01 / Win7 x64 SP1 |
|
| Back to top |
|
 |
umbra Power Member

Joined: 14 Jan 2012 Posts: 668
|
Posted: Mon Jun 25, 2012 10:21 am Post subject: |
|
|
Confirmed. _________________ Windows 7 Pro x64, Windows 8 Pro x64 |
|
| Back to top |
|
 |
petermad Power Member


Joined: 05 Feb 2003 Posts: 5351 Location: Valsted, Denmark
|
Posted: Mon Jun 25, 2012 2:59 pm Post subject: |
|
|
Confirmed under Windows 7 with standard Windows Aero theme.
But, in 64bit TC you can disable the themed menu (XPthemeBg=0) - that doesn't work for 32bit TC under Windows 7 (it works under Windows XP). _________________ #524
Danish Total Commander Translator
Windows XP Home 32bit SP3 & Windows 7 Home Premium 64bit SP1 and Windows 8. TC 8.01 32 + 64bit
Get Extended Total Commander Menus |
|
| Back to top |
|
 |
Sob Power Member

Joined: 19 Jan 2005 Posts: 626
|
Posted: Mon Jun 25, 2012 4:44 pm Post subject: |
|
|
| 64-bit version = menubar drawn by Lazarus. And if I remember correctly, right-aligned Help menu is deprecated since Windows 95, so it's quite possible that no one ever tested it. :) |
|
| Back to top |
|
 |
ghisler(Author) Site Admin


Joined: 04 Feb 2003 Posts: 24621 Location: Switzerland
|
Posted: Thu Jun 28, 2012 7:40 am Post subject: |
|
|
I guess so too - I will check the library code whether I can fix it. _________________ Author of Total Commander
http://www.ghisler.com |
|
| Back to top |
|
 |
sztihamer Member


Joined: 31 Jan 2012 Posts: 106
|
Posted: Fri Jun 29, 2012 5:52 am Post subject: |
|
|
I can confirm that this bug has been fixed in version 8.0RC2.
Screenshot: http://i.imgur.com/0EOXC.png |
|
| Back to top |
|
 |
Flint Power Member


Joined: 27 Oct 2003 Posts: 2867 Location: Moscow, Russia
|
Posted: Fri Jun 29, 2012 6:32 am Post subject: |
|
|
Confirm fixed. _________________ Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, other stuff!
Using TC 8.01 / Win7 x64 SP1 |
|
| Back to top |
|
 |
petermad Power Member


Joined: 05 Feb 2003 Posts: 5351 Location: Valsted, Denmark
|
Posted: Fri Jun 29, 2012 8:01 am Post subject: |
|
|
I can confirm that the bug with two lined menu background is fixed in TC 8.01RC2 x64.
But I still canNOT disable themed background for the menu itself in the 32 bit version under Windows 7 - it works under Windows XP, and it woks for the background under the button bar and the drive button bar also under Windows 7, but NOT for the menu - the menu stays themed with TC 32bit under Windows 7 - despite the setting of XPthemeBg. _________________ #524
Danish Total Commander Translator
Windows XP Home 32bit SP3 & Windows 7 Home Premium 64bit SP1 and Windows 8. TC 8.01 32 + 64bit
Get Extended Total Commander Menus |
|
| Back to top |
|
 |
ghisler(Author) Site Admin


Joined: 04 Feb 2003 Posts: 24621 Location: Switzerland
|
Posted: Fri Jun 29, 2012 9:09 am Post subject: |
|
|
Thanks for confirming the fix!
I'm sorry, the Lazarus libary doesn't currently offer a way to disable the menu background. _________________ Author of Total Commander
http://www.ghisler.com |
|
| Back to top |
|
 |
petermad Power Member


Joined: 05 Feb 2003 Posts: 5351 Location: Valsted, Denmark
|
Posted: Fri Jun 29, 2012 12:03 pm Post subject: |
|
|
| Quote: | | I'm sorry, the Lazarus libary doesn't currently offer a way to disable the menu background. |
I am talking about the 32bit version not being able to disable the menu background - so no Lazarus involment here!
The menu looks the same in my 32bit version (under Windows 7 x64) whether or not I have disabled "Configuration" -> "Options..." -> "Layout" -> "Windows XP theme background (menu+all bars)"
And actually - toggeling "Windows XP theme background (menu+all bars)" does work OK in the x64 version!
You can see the differencies as I see them here: http://madsenworld.dk/tcmd/xpthemebg.png
I expected snapshot D to look like B and I to look like G. Notice I am only referring to the look of the background of the menu bar - not the button bar or the drive button bar. _________________ #524
Danish Total Commander Translator
Windows XP Home 32bit SP3 & Windows 7 Home Premium 64bit SP1 and Windows 8. TC 8.01 32 + 64bit
Get Extended Total Commander Menus |
|
| Back to top |
|
 |
umbra Power Member

Joined: 14 Jan 2012 Posts: 668
|
|
| Back to top |
|
 |
petermad Power Member


Joined: 05 Feb 2003 Posts: 5351 Location: Valsted, Denmark
|
Posted: Sat Jun 30, 2012 11:28 pm Post subject: |
|
|
But the interesting thing is that it works for 32bit TC under Win XP 32bit, but not under Win 7 64bit - so the SAME version of TC (the 32bit) works differently under different OS'es - that seems buggy to me.
It also seems peculiar that it is possible to enable an extra feature, but that you cannot disable it! - I could understand it if it was the other way around. _________________ #524
Danish Total Commander Translator
Windows XP Home 32bit SP3 & Windows 7 Home Premium 64bit SP1 and Windows 8. TC 8.01 32 + 64bit
Get Extended Total Commander Menus
Last edited by petermad on Sun Jul 01, 2012 1:11 am; edited 1 time in total |
|
| Back to top |
|
 |
umbra Power Member

Joined: 14 Jan 2012 Posts: 668
|
Posted: Sun Jul 01, 2012 1:06 am Post subject: |
|
|
I'm not a Delphi programmer, so I don't know how it works with standard Windows controls like Buttons, ToolBars, ComboBoxes, ..., but I doubt it's using ones that are provided by Windows. These controls are not themed properly in TCx32 and this issue seems just like another example of it. Maybe they were tested with the old XP's theming system but not with new Aero-type themes. _________________ Windows 7 Pro x64, Windows 8 Pro x64 |
|
| Back to top |
|
 |
sztihamer Member


Joined: 31 Jan 2012 Posts: 106
|
Posted: Sun Jul 01, 2012 4:31 am Post subject: |
|
|
| Remember that the 32bit version of Total Commander is still built with Borland Delphi 2 which was released in 1996. That was the first version that supported 32bit Windows environments if I remember correctly. Delphi 2 is great because it generates small and fast code, but there are some drawbacks like the ones petermad has. |
|
| Back to top |
|
 |
Sob Power Member

Joined: 19 Jan 2005 Posts: 626
|
Posted: Sun Jul 01, 2012 9:12 am Post subject: |
|
|
| Quote: | | It also seems peculiar that it is possible to enable an extra feature, but that you cannot disable it! - I could understand it if it was the other way around. |
Actually, it kind of is the other way around. :) When themes are enabled in Windows, then themed menus are standard and non-themed ones are extra feature. Take any program with standard menu (not drawn by program itself) - it does not have to support themes at all - and it will still have themed menu. Unlike for buttons and other controls, system does use themes for menus in all programs by default.
| Quote: | | But the interesting thing is that it works for 32bit TC under Win XP 32bit, but not under Win 7 64bit - so the SAME version of TC (the 32bit) works differently under different OS'es - that seems buggy to me. |
In fact, it does not work in XP either. It just seems it does.
32-bit TC uses native menu, but with one exception and it's the gradient with XP's Luna theme. Take a look at Notepad, no gradient there and it's like native menu looks like. Yes, Explorer does have gradient, but it's just one of many examples how great MS is with violating own paradigms. But since it does look better together with toolbar's gradient, TC does it too. And when you turn it off, TC just reverts to standard menu (everything drawn by system).
With your Luna theme on Windows 7, you probably have the default system menu in 32-bit TC all the time (I assume that drawing own gradient is active only on XP). But the difference here is how default menu looks like. Again, check Notepad. Here the gradient is by default. So native menu in TC means menu with gradient. |
|
| Back to top |
|
 |
|