Tab order of modules/services

Rusty

Well-Known Member
Licensed User
Longtime User
Erel,
Frequently, when I add a module, service, activity etc. The environment (B4A) puts the new module way to the right in the tab order.
I can drag the tab to the left so that it is near my Main and I can navigate back and forth.
When I save and shut down the b4a environment, the order of the tabs is lost.
Is there a way to save this order and if not, I would request this as an update/enhancement of the environment.
Thanks,
Rusty
 

warwound

Expert
Licensed User
Longtime User
This has been requested before - it's a feature i'd also like to see.
There is a manual solution though...

First make a copy of your project's .b4a file.

Now open the original .b4a file in a text editor such as Notepad, you'll see it starts something like this:

Version=2.22
IconFile=
FullScreen=False
IncludeTitle=True
NumberOfModules=2
Module1=Utils
ModuleVisible1=1
Module2=DownloaderService
ModuleVisible2=1
Package=uk.co.martinpearman.b4a.downloadmanagerdemo
Label=DownloadManager Demo
VersionCode=1
VersionString=
Orientation=unspecified
CanInstallToExternalStorage=False
DoNotOverwriteManifest=False

In this project when i open it, the Utils code module shows after the Main activity module followed by the DownloaderService service module.

I can change that with this edit:

NumberOfModules=2
Module1=DownloaderService
ModuleVisible1=1
Module2=Utils
ModuleVisible2=1
Package=uk.co.martinpearman.b4a.downloadmanagerdemo

Be sure to backup the original .b4a file before attempting any hacks!

Martin.
 

Rusty

Well-Known Member
Licensed User
Longtime User
Martin, thanks for that advice.
That is what I've been doing. It works fine, but I have dozens of modules which make it quite a task (even though I do it anyway)
I was hoping since you can drag the tabs where you want them that the save project would actually save that order.
I appreciate your post.
Rusty
 
Top