B4J Question Forms with different Windows version's.

Swissmade

Well-Known Member
Licensed User
Longtime 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
Longtime 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:
Upvote 0

Peter Simpson

Expert
Licensed User
Longtime User
Upvote 0

Swissmade

Well-Known Member
Licensed User
Longtime 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:
Upvote 0
Top