OPENBAR doesn't set ButtonBar=1 in [Layout]
Moderators: Hacker, petermad, Stefan2, white
OPENBAR doesn't set ButtonBar=1 in [Layout]
Is it error or by design? When I switch buttonbar using cm_VisButtonbar, TC sets ButtonBar parameter immediately. But if buttonbar is disabled, ButtonBar parameter still keeps value 0 after calling OPENBAR.
OPENBAR is only for loading a .bar file temporarily - Next time you start TC, the buttonbar that is selected as default ([Buttonbar] Buttonbar=path) is still selected (not the bar you opened with the BUTTONBAR command), and if displaying the buttonbar wasn't chosen in Layout, it is still not chosen.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
I think it may confuse user (as it has confused me and some other people from Russian board) - if he sees buttonbar, he thinks that it is enabled (and checkbox in configuration dialog says that it is enabled), but really it is disabled...
It would be useful to have some parameter for this command (or maybe a key in wincmd.ini) to change this behaviour to expected one.
It would be useful to have some parameter for this command (or maybe a key in wincmd.ini) to change this behaviour to expected one.
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
OPENBAR is indeed meant to switch between multiple button bars, not to set a new default button bar. It's like when you have a button with a .bar file as the command: It also just switches the bar without setting a new default.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Christian, I understand that OPENBAR doesn't set new bar as default bar. But it is strange that it doesn't set 'button bar enabled' parameter to 'true' when enables buttonbar. It causes TC to start with disabled buttonbar in cases when it was enabled on last TC close (if it was enabled via OPENBAR).
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
The idea is that people who normally don't use a button bar can still use one temporarily.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com