Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[x64] Two-lined main menu has wrong background
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Total Commander Forum Index -> TC Fixed bugs Printable version
View previous topic :: View next topic  
Author Message
Flint
Power Member
Power Member


Joined: 27 Oct 2003
Posts: 2867
Location: Moscow, Russia

PostPosted: Mon Jun 25, 2012 10:17 am    Post subject: [x64] Two-lined main menu has wrong background Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
umbra
Power Member
Power Member


Joined: 14 Jan 2012
Posts: 668

PostPosted: Mon Jun 25, 2012 10:21 am    Post subject: Reply with quote

Confirmed.
_________________
Windows 7 Pro x64, Windows 8 Pro x64
Back to top
View user's profile Send private message Send e-mail
petermad
Power Member
Power Member


Joined: 05 Feb 2003
Posts: 5351
Location: Valsted, Denmark

PostPosted: Mon Jun 25, 2012 2:59 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Sob
Power Member
Power Member


Joined: 19 Jan 2005
Posts: 626

PostPosted: Mon Jun 25, 2012 4:44 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24621
Location: Switzerland

PostPosted: Thu Jun 28, 2012 7:40 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
sztihamer
Member
Member


Joined: 31 Jan 2012
Posts: 106

PostPosted: Fri Jun 29, 2012 5:52 am    Post subject: Reply with quote

I can confirm that this bug has been fixed in version 8.0RC2.
Screenshot: http://i.imgur.com/0EOXC.png
Back to top
View user's profile Send private message
Flint
Power Member
Power Member


Joined: 27 Oct 2003
Posts: 2867
Location: Moscow, Russia

PostPosted: Fri Jun 29, 2012 6:32 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
petermad
Power Member
Power Member


Joined: 05 Feb 2003
Posts: 5351
Location: Valsted, Denmark

PostPosted: Fri Jun 29, 2012 8:01 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24621
Location: Switzerland

PostPosted: Fri Jun 29, 2012 9:09 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
petermad
Power Member
Power Member


Joined: 05 Feb 2003
Posts: 5351
Location: Valsted, Denmark

PostPosted: Fri Jun 29, 2012 12:03 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
umbra
Power Member
Power Member


Joined: 14 Jan 2012
Posts: 668

PostPosted: Sat Jun 30, 2012 10:06 am    Post subject: Reply with quote

The original bug is fixed.

2petermad
This issue has been mentioned a few times already.
http://www.ghisler.ch/board/viewtopic.php?t=33718
http://www.ghisler.ch/board/viewtopic.php?t=34337
Always with the same answer, that it's caused by a difference between Lazarus and Delphi.
_________________
Windows 7 Pro x64, Windows 8 Pro x64
Back to top
View user's profile Send private message Send e-mail
petermad
Power Member
Power Member


Joined: 05 Feb 2003
Posts: 5351
Location: Valsted, Denmark

PostPosted: Sat Jun 30, 2012 11:28 pm    Post subject: Reply with 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.

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
View user's profile Send private message Send e-mail Visit poster's website
umbra
Power Member
Power Member


Joined: 14 Jan 2012
Posts: 668

PostPosted: Sun Jul 01, 2012 1:06 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
sztihamer
Member
Member


Joined: 31 Jan 2012
Posts: 106

PostPosted: Sun Jul 01, 2012 4:31 am    Post subject: Reply with quote

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
View user's profile Send private message
Sob
Power Member
Power Member


Joined: 19 Jan 2005
Posts: 626

PostPosted: Sun Jul 01, 2012 9:12 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> TC Fixed bugs All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group