B4J Question Forms with different Windows version's.

swissmade

Well-Known Member
Licensed User
Hi all,

Building Forms with Scene Builder 2 creates very nice forms.
Now there is a problem.
In Windows 7-8 and Classic theme you get the form's you have designed.
If you use an other theme like Windows 7 Basic the form's are getting mis-formed.
Font-size are not the same with as result all node's are bigger then you have designed.
Layouts are changing.

Have anybody any idea how to solve this.

Thanks for help.
 

swissmade

Well-Known Member
Licensed User
Are you sure that you are using Java 8 on all computers?
Everywhere I use Java 8 latest version 8.31
On Windows 7 and 8 I have seen this issue.
Change on windows 7 the theme to Windows Classic has solved this.
But some customers go to change this with as result of bad forms.

With all forms I add a Stylesheet what is helping a little.
B4X:
MainForm.Stylesheets.Add(File.GetUri(File.DirAssets, "modena.css"))
 
Last edited:

swissmade

Well-Known Member
Licensed User
Find a couple of interesting links about this (don't know how much difficult can be have some tweaking about with B4J):
Will Try,
many thanks for this
 

Peter Simpson

Expert
Licensed User

swissmade

Well-Known Member
Licensed User
(SOLVED)
To get this right you can do the follow.
In Scene builder fix all your Controls with Anchor Pane Constraints. Left, Right, Top and Bottom.
Or use USE_PREF_SIZE
Load the Css stylesheet modena.css.
B4X:
    MainForm.Stylesheets.Add(File.GetUri(File.DirAssets, "modena.css"))
Most of the problems solved then.
 
Last edited:
Top