B4J Question Blank Screen

davelt99

Member
Licensed User
Longtime User
I've created and compiled an app with B4J on a windows 10 laptop that works perfectly - displaying all objects.

When I move that same project to another windows 10 laptop and "Compile and Run" from the B4J menu, all I am able to see is a blank screen - the form with no objects.


FullDisplay.jpg NoDisplay.jpg

Seems that all files are the same between the two laptops.

Any help is greatly appreciated.

Thank you
 

stevel05

Expert
Licensed User
Longtime User
Do you see any errors in the log?
 
Upvote 0

davelt99

Member
Licensed User
Longtime User
No, only log is "Program started." However, if I click on the bottom right portion of the blank screen - where the Exit button is but is not displayed - the ExitApplication closes the form.
 
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
form style 'UNIFIED' problem, maybe?
 
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
Some computers (depending on graphics hardware} can have a problem if the form style is set to 'UNIFIED'
Try setting it to "DECORATED" to see if the controls become visible.
 
Upvote 0

davelt99

Member
Licensed User
Longtime User
Now Works. "UTILITY","UNDECORATED" AND "TRANSPARENT" WORK.

"DEFAULT" and "UNIFIED" DON'T WORK.

Thanks very much for your help.
 
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
You can check if a machine supports UNIFIED by using

B4X:
 Dim Platform As JavaObject
 If Platform.InitializeStatic("javafx.application.Platform").RunMethod("isSupported",Array("UNIFIED_WINDOW")) Then
 MainForm.SetFormStyle("UNIFIED") ' can use unified
 Else
 MainForm.SetFormStyle("DECORATED") ' use alternate style
 End If
 
Upvote 0
Top