B4J Question Forms with different Windows version's.

Discussion in 'B4J Questions' started by swissmade, Feb 12, 2015.

  1. swissmade

    swissmade Active 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.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Are you sure that you are using Java 8 on all computers?
     
  3. swissmade

    swissmade Active Member Licensed User

    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.
    Code:
    MainForm.Stylesheets.Add(File.GetUri(File.DirAssets, "modena.css"))
     
    Last edited: Feb 13, 2015
  4. swissmade

    swissmade Active Member Licensed User

    Any Idea somebody.
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    I don't think that there is anything you can do about it.
     
  6. swissmade

    swissmade Active Member Licensed User

    Thanks Erel
     
  7. inakigarm

    inakigarm Well-Known Member Licensed User

  8. swissmade

    swissmade Active Member Licensed User

    Will Try,
    many thanks for this
     
  9. Peter Simpson

    Peter Simpson Expert Licensed User

  10. swissmade

    swissmade Active Member Licensed User

    Thanks for this.
     
  11. swissmade

    swissmade Active 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.
    Code:
    MainForm.Stylesheets.Add(File.GetUri(File.DirAssets, "modena.css"))
    Most of the problems solved then.
     
    Last edited: Feb 22, 2015
    inakigarm and Erel like this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice