Page 1 of 1

Possibility for OPENBAR to open default bar.

Posted: 2024-03-01, 02:05 UTC
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

Re: Possibility for OPENBAR to open default bar.

Posted: 2024-03-01, 03:15 UTC
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,#))"