Problems 2 and 3 both work in the previous version.
I find it difficult to think it could be a timing problem given my previous post and the code it executed. In that post the viewpane is always open.
The event is only changing from dual to single file display or single to dual file display.
In the first case, how could a timing event result in the toolbar to the right of the viewpane ?
The return to dual works as expected.
If only this problem were solved, I'd say "good enough" .
But, this is only one humble viewpoint.
In a dual file display lister with viewpane on the right I pressed Button Toolbar Center.
The Drives toolbar appeared between the two file displays as expected.
I then closed one of the file displays and the Drives toolbar moved to the right side of the viewpane.
In a single file display lister with viewpane on the right I pressed the Button Toolbar Center.
Again the drives toolbar appeared on the right side of the viewpane.
The same toolbar, drives in this case can't be displayed simultaneously in center, between the file displays, and just left of the viewpane . Either button can be used, but not both at the same time.
I think if State=Center could be modified to respect the viewer and metadata pane, the code simplifies and State=viewpane could very possibly be eliminated from the code.
Otherwise, I think, only in my very humble opinion, that this becomes a monstrosity.
That be the case, I'll settle for the previous version you posted.
Thanks much for the code you have posted ! I'll use it to help me better understand scripting.