Panes and CTBs
Posted: 18 May 2014 19:13
I have been trying to come up with a way to replicate the functionality of the dual pane button but slightly tweaked.
Easy enough to do what I want if I add another button and leave the dual pane button where it is: basically, I want the other pane to be pointed at the folder that's currently open, so I can just make a button that issues
and I have what I want.
However, to switch the second pane off again, I need to either use the existing (now toggled) dual pane button, or have a right-click function for my ctb that just issues #800. Which feels inelegant.
I found a thread discussing the possibilities for a toggle function for ctbs that seemed to suggest a solution (in general) that effectively switched between two toolbars -- which is a fairly high maintenance solution
So I thought, can't I just look at the environment in some way and find out how many panes are open?
The xypane2 variable seems to be set with the last used path in pane 2 even if it's not currently open. And I can't find anything else helpful.
I can't find anything in the config that will let me change the default behaviour of the existing button.
I feel sure I'm missing something blindingly obvious. Am I?
Easy enough to do what I want if I add another button and leave the dual pane button where it is: basically, I want the other pane to be pointed at the folder that's currently open, so I can just make a button that issues
Code: Select all
::#810
However, to switch the second pane off again, I need to either use the existing (now toggled) dual pane button, or have a right-click function for my ctb that just issues #800. Which feels inelegant.
I found a thread discussing the possibilities for a toggle function for ctbs that seemed to suggest a solution (in general) that effectively switched between two toolbars -- which is a fairly high maintenance solution
So I thought, can't I just look at the environment in some way and find out how many panes are open?
The xypane2 variable seems to be set with the last used path in pane 2 even if it's not currently open. And I can't find anything else helpful.
I can't find anything in the config that will let me change the default behaviour of the existing button.
I feel sure I'm missing something blindingly obvious. Am I?