Button bar - Set window title

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
petermad
Power Member
Power Member
Posts: 14743
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Button bar - Set window title

Post by *petermad »

history.txt wrote:13.05.22 Added: Button bar: Set window title of the bar to the name of the bar file (without path) (32/64)
Can anybody explain how this is supposed to work - Where am I supposed to see that title?
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Gral
Power Member
Power Member
Posts: 1460
Joined: 2005-01-26, 15:12 UTC

Re: Button bar - Set window title

Post by *Gral »

You can see this e.g. using Task Manager filesystem plugin - http://gral.y0.pl/tc/buttonbartitle.png

P.S. This is what it looks in old versions - http://gral.y0.pl/tc/buttonbartitleold.png
User avatar
petermad
Power Member
Power Member
Posts: 14743
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Button bar - Set window title

Post by *petermad »

2Gral
Thanks - apart from that - what practical use does it have?
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48028
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Button bar - Set window title

Post by *ghisler(Author) »

Scripting?
Author of Total Commander
https://www.ghisler.com
User avatar
nsp
Power Member
Power Member
Posts: 1804
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Button bar - Set window title

Post by *nsp »

ghisler(Author) wrote: 2022-05-20, 08:31 UTC Scripting?
Do you plan to provide a lua/vb scripting API ? ;)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48028
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Button bar - Set window title

Post by *ghisler(Author) »

No, a scripting language limited to just Total Commander would not be very useful. Use a tool like AutoHotkey instead, there are many samples in our Wiki on how to use it with Total Commander:
https://www.ghisler.ch/wiki/index.php?title=AutoHotkey
Author of Total Commander
https://www.ghisler.com
User avatar
Vochomurka
Power Member
Power Member
Posts: 814
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Re: Button bar - Set window title

Post by *Vochomurka »

PowerPro script
Single user license #329241
PowerPro scripts for Total Commander
Fla$her
Power Member
Power Member
Posts: 2254
Joined: 2020-01-18, 04:03 UTC

Re: Button bar - Set window title

Post by *Fla$her »

ghisler(Author) wrote: 2022-05-22, 08:10 UTCa scripting language limited to just Total Commander would not be very useful.
And what about the OLE/COM object model for vbs/js/wsf developers, so that they can work in TC window without dll-registration? This is done, for example, in AkelPad and some other programs.
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48028
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Button bar - Set window title

Post by *ghisler(Author) »

Personally I find OLE/COM terrible. There are so many ways to make mistakes, especially the reference counting. Some programs forget to release an interface, causing memory leaks, and others try to release them too many times, causing crashes. The DLL model is much cleaner, as well as the SendMessage model.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2254
Joined: 2020-01-18, 04:03 UTC

Re: Button bar - Set window title

Post by *Fla$her »

ghisler(Author) wrote: 2022-06-10, 08:48 UTCThere are so many ways to make mistakes, especially the reference counting.
What do you mean?
ghisler(Author) wrote: 2022-06-10, 08:48 UTCSome programs forget to release an interface, causing memory leaks, and others try to release them too many times, causing crashes.
What programs are you talking about? Windows has only 2 interpreter programs: wscript.exe and cscript.exe. They release memory perfectly after completion.

An important advantage is the frequent absence of the need to use third-party interpreters that take a space. Plus a simple and beginner-friendly syntax.
Overquoting is evil! 👎
Post Reply