Possibility for OPENBAR to open default bar.

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

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

Possibility for OPENBAR to open default bar.

Post by *petermad »

Currently the OPENBAR, OPENBAR1 and OPENBAR2 commands only works with a bar file name as parameter.

In order to return from sub-bars, it would be nice if the command could open the currently configured default bar ([Buttonbar] Buttonbar= and
[ButtonbarVertical] Buttonbar= in wincmd.ini).

It could either be if the commands are used without any parameter, or if they are used with the parameter: .bar (corresponds to how the OPENLANGUAGEFILE .mnu works).

When opening a sub-bar as a menu, the button pointing back to main bar should not be shown when OPENBAR or OPENBAR .bar is used - just a it already is when OPENBAR barfile.bar is used.

I know that the default button-bar can be opened with a command like:

Code: Select all

cm_VisButtonbar 2,cm_VisButtonbar 1
But using this approach causes unpleasant blinking when the bar ir turned off and on again, and a button with that command is not hidden when a sub-bar is opened as a menu.

See also viewtopic.php?p=451176#p451176
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Fla$her
Power Member
Power Member
Posts: 2318
Joined: 2020-01-18, 04:03 UTC

Re: Possibility for OPENBAR to open default bar.

Post by *Fla$her »

Support. Alternative:
  1. em_OpenBar: OPENBAR1 / %A (cmd / par.)
  2. autorun.cfg:

    Code: Select all

    LoadLibrary Plugins\Autorun_Tweaks.dll
    # . . .
    SetMessageAction 'DefaultBar' CommandExec em_OpenBar %"IniRead('~/R', COMMANDER_INI, 'Buttonbar', 'Buttonbar')"
  3. Run: TCFS2.exe /ef msg(regmsg(DefaultBar))
That, unfortunately, doesn’t work:
TCFS2.exe /ef "tem(`em_OpenBar `tcini(Buttonbar,Buttonbar,#))"
Overquoting is evil! 👎
Post Reply