Tab order not preserved.

Working on new editor enhancements?
mikejs
Enthusiast
Enthusiast
Posts: 175
Joined: Thu Oct 21, 2010 9:46 pm

Tab order not preserved.

Post by mikejs »

I have a project with 14 sources files in it, and the project is set to load all files when open. (PB 4.60 32bit, on Win7 32bit)

Works fine, except occasionally when closing and re-opening the project, the tabs will come out in a different order. It seems random - it doesn't end up alphabetical or most recently editted or anything I can make sense of. Given that the order is stored in the project file, it looks like whatever's going wrong is happening when the project is closed, not when it is opened later.

Is this a known issue? I've not noticed this before with projects, but I've not previously dealt with projects with more than four or five files in them.
User avatar
STARGÅTE
Addict
Addict
Posts: 2234
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: Tab order not preserved.

Post by STARGÅTE »

the oder of the tabs is defined in the XML pbp-file:

Code: Select all

<section name="files">
   <file name="Includes\Ship.pbi">
   <file name="Includes\Configuration.pbi">
   <file name="Includes\Language.pbi">
   ...      
if you want reorder it, then edit this xml-file
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
mikejs
Enthusiast
Enthusiast
Posts: 175
Joined: Thu Oct 21, 2010 9:46 pm

Re: Tab order not preserved.

Post by mikejs »

STARGÅTE wrote:the oder of the tabs is defined in the XML pbp-file:

Code: Select all

<section name="files">
   <file name="Includes\Ship.pbi">
   <file name="Includes\Configuration.pbi">
   <file name="Includes\Language.pbi">
   ...      
if you want reorder it, then edit this xml-file
Yes, I've already found that I can edit this file to fix it - I'd just like to understand why such fixing is occasionally needed and if there's any way to avoid this in the first place.

What seems to be happening is that, on exit, the pbp is being resaved with the tabs in a different order.
Post Reply