Here's what I would like to do:
Have a button that loads a script to enlarge the size of XY's window (user adjustable) and show the dual panes with a ratio of say 70/30 (again, user adjustable).
I downloaded a DualPane50/50 script which sort of works if the DP is active. But I have no clue as to where to start editing it to allow it to open the second pane and change the window size (if possible).
Can it even be done?
Here's the script for DualPane50/50 found on the forum (thanks to whoever the author is, I couldn't find it again):
Code: Select all
// Adjust panes so they are equal size
"Adjust Pane Size"
if (Get('#800')) {
$current = SetLayout();
$dim = Get('#801', 'Height', 'Width');
$size = RegexMatches($current, 'Pane[12]' . $dim . '=\d+', '+');
$size = RegexReplace($size, 'Pane[12]' . $dim . '=');
$size = Eval($size) + GetKey('SplitterWidth', 'General');
$half = Floor($size / 2);
SetLayout("Pane1$dim=$half,Pane2$dim=$half");
Status "Panes resized to a $dim of $half px.",, 'ready';
} else {
Status 'Panes are not resized in single pane mode.',,'alert';
}