WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: cssyphus on October 03, 2019, 01:14:16 PM

Title: HowTo rearrange open script tabs in WB Studio
Post by: cssyphus on October 03, 2019, 01:14:16 PM
Is there a way to rearrange open script tabs in WB Studio? Drag/Drop doesn't seem to do it. Any method is fine, even if it involves closing Studio and editing an ini/text file somewhere... ?
Title: Re: HowTo rearrange open script tabs in WB Studio
Post by: td on October 03, 2019, 01:44:51 PM
No "ini" file.  The information is stored in the registry and is based on the project being opened.  You can find the file order under the Workspaces registry key.  There is a "window_#" key where the "#" is the number that reflects the load order.  Each project including the "default" project has its own set of "window_#" keys.  I have never needed to change the order of the tabs so I haven't tried it but the easiest way to change the order might be to rename the "window_#" keys based on the file name in the underlying "PathName" value.   

It might be easier to just close all windows and reopen the files from a project.  Of course, this would require that you see the wisdom of organizing your work using the workspace/project functionality...

Good luck.   
Title: Re: HowTo rearrange open script tabs in WB Studio
Post by: cssyphus on October 05, 2019, 07:32:14 PM
Many thanks, Tony. I appreciate the answer and will play around with this a bit.  Your suggestion may be the best course, but it's nice to understand how it works so I feel solid about the decision.
Title: Re: HowTo rearrange open script tabs in WB Studio
Post by: td on October 07, 2019, 09:40:44 AM
WinBatch Studio's registry use is straight forward enough.  The interesting bits of WBS are hidden from the user and include the use of RPC and multi-threading among other technologies.