I have defined the string variables, program fonts, colors of the program and program constants in "Process_Globals"
Finally, a few simple methods that can be used anywhere
For example, click on menu components or change the size of the text to large and small and ...
No, code modules too are cross-platform and can be used in B4XPages projects. Of course, the code inside them must be "b4x", it must possibly be conditioned by #IF B4A (or B4i or B4J).
Just share them in the same way you share the B4XPages, that is to put them in the "root folder" (if needed, since you can also have code modules that you only use in one of the 3 platforms; in this case, obviously, it is not necessary to share them, just put them in the folder of the specific platform / language).
You just have to remember that, as @DonManfred wrote, they don't handle events (so, for example, you can't write a routine for downloading a file there)
Yes but then you have to instantiate it somewhere and it would not be available immediately for every platform.
A code module is as if it were a single instance of a class always accessible and from everywhere, with the exception of the impossibility of handling events.
Code modules are very useful and are exactly the place to write utility routines that can be used by any other part of your projects.