B4J Question Can anyone show me how to solve this issue?

Marco Gioia

Member
Licensed User
Hi everyone,

if I show fx.PrimaryScreen.MaxX and fx.PrimaryScreen.MaxY using the IDE I got 1200,972
If I show them using the jar i got 1024,794

Why?

Thanks in advance
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
B4X:
Sub AppStart (Form1 As Form, Args() As String)
    
    MainForm = Form1
    
    MainForm.RootPane.LoadLayout("Layout1") 'Load the layout file.
    
    Dim tmp As String
    Dim x As Int = fx.PrimaryScreen.MaxX
    Dim y As Int = fx.PrimaryScreen.MaxY
    
    tmp = x & " - " & y
    Log("tmp1="&tmp)
    'msg.Show(tmp,"")
        
    MainForm.Show
    
    x = fx.PrimaryScreen.MaxX
    y = fx.PrimaryScreen.MaxY
    
    tmp = x & " - " & y
    Log("tmp2="&tmp)
    'msg.Show(tmp,"")
    
End Sub
It is giving me two times the same value

tmp1=1920 - 999
tmp2=1920 - 999
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
Win10 Pro 1803 64bit, B4J 6.3 (non-beta), JMsgboxes 1.20, FXtra Release 5, Java 10.0.1: No issues
Edit: I used the posted project
 
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
This may seem a stupid question, but it did spring to mind first.

You are running them on the same machine?
 
Upvote 0
Top