Hide buttons with OPENBAR * when the bar is shown as menu

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

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

Hide buttons with OPENBAR * when the bar is shown as menu

Post by *petermad »

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
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
User avatar
ghisler(Author)
Site Admin
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

Post by *ghisler(Author) »

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
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Hide buttons with OPENBAR * when the bar is shown as menu

Post by *petermad »

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
User avatar
ghisler(Author)
Site Admin
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

Post by *ghisler(Author) »

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
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Hide buttons with OPENBAR * when the bar is shown as menu

Post by *petermad »

Why not just use the bar name to go back?
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:

Code: Select all

cm_VisButtonbar 2,cm_VisButtonbar 1
- to go back to the default bar, but this kind of button is also not hidden in Menu mode.

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
User avatar
Stiltzkin
Member
Member
Posts: 194
Joined: 2004-09-10, 17:15 UTC

Re: Hide buttons with OPENBAR * when the bar is shown as menu

Post by *Stiltzkin »

maybe adding a parameter to OPENBAR like /H (which would hide the button if opened as a menu) could solve that?
Post Reply