Dual Lister Layout With Toolbar Between

Continuing the discussion from Directory Opus 13.13.1 (Beta):

This works perfectly well, thanks for this feature!
My qeustion is not fully related to the new feature above.

I've got this layout here, a toolbar between left and right lister as shown below.

When pressing the button "Dual Display" with command

Set DUAL=Toggle,Remember
@toggle:invert
@if:Set DUAL=on

Set VIEWPANE=on
@icon:dualdisplay, Set DUAL=off
@if:else
Set VIEWPANE=off
@icon:viewerpane, Set DUAL=on

I get the following layout: the toolbar, which previously was located between the listers has now moved to the right side.

Is there a chance to stick this TB to the left lister at its right border as it was before?

Don't get me wrong, when pressing the "Dual Display" button once again, the layout is reverted back to as it was before!

Michael

You should be able to make your button move the toolbar as well as toggling the viewer pane, I think.

You need to create two toolbar sets, one with the vertical toolbar in the center and another with that toolbar on the left edge, as shown in this code with the lines beginning with Toolbar:

//Preferences-File Displays-Options-Dual display must unselect "Set new panel to when switching to dual file display"
@toggle:if Set Dual=off
Set PAIREDFOLDERS=off
@if:Set DUAL=on
@set lst:sourceWasRight={=IsChecked("Set SOURCE=right")=}
Set DUAL=toggle,remember
Toolbar "Operations Left" LOADSET=replace
@if:else
Set DUAL=toggle,remember
Toolbar "Default" LOADSET=replace
=return Val("$lst:sourceWasRight") ? "Go SWAP" : ""
=return Val("$lst:sourceWasRight") ? "Set SOURCE=right" : ""

You should be able to do it without a toolbar set, although using one lets you move multiple toolbars at once.