Currently when a .bar file is used as the command in a button, then that button is not shown when the button bar is opened as a menu. That is convenient when you want a "Go back to parent bar" button, that is it not shown when the button bar is opened as a menu.
I would be nice if the commands OPENBAR, OPENBAR1, OPENBAR2, OPENBAR *, OPENBAR1 * and OPENBAR2 * could be treated the same way as when there is just a .bar file in the command line
Hide buttons with OPENBAR * when the bar is shown as menu
Moderators: Hacker, petermad, Stefan2, white
Hide buttons with OPENBAR * when the bar is shown as menu
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
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Hide buttons with OPENBAR * when the bar is shown as menu
Are you sure about that? The user may want to e.g. replace the vertical bar through a button bar menu command, e.g. when he has 100s of bars...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Hide buttons with OPENBAR * when the bar is shown as menu
Then maybe just enable it for OPENBAR *, OPENBAR1 * and OPENBAR2 * - which will usually be used to go back to the default bar from a subbar.
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
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Hide buttons with OPENBAR * when the bar is shown as menu
Why not just use the bar name to go back? This has the advantage that it works even when the bar file is used for the vertical bar. The OPENBAR commands are meant to open a bar either from somewhere else, like the command line or a hotkey, or to change the OTHER bar (e.g. vertical bar from main bar).
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Hide buttons with OPENBAR * when the bar is shown as menu
I provide several button bars with my Extended Menus and with my TC Languagebar. I have no way of knowing the name of the Users default bar, to use in the provided "Return to default bar" button in those bars - that is why OPENBAR * is a good improvement - before that I used a button with the command:Why not just use the bar name to go back?
Code: Select all
cm_VisButtonbar 2,cm_VisButtonbar 1
Also if I change the default bar file, I would have to update all "Return to default bar" buttons - not very convenient.
Since OPENBAR * is a new feature - this is the time to decide that buttons with this command are invisible in Menu mode.
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
Re: Hide buttons with OPENBAR * when the bar is shown as menu
maybe adding a parameter to OPENBAR like /H (which would hide the button if opened as a menu) could solve that?