Page 1 of 1

Tab order not preserved.

Posted: Thu Apr 19, 2012 10:27 am
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.

Re: Tab order not preserved.

Posted: Thu Apr 19, 2012 12:29 pm
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

Re: Tab order not preserved.

Posted: Thu Apr 19, 2012 1:33 pm
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.