B4J Question Internal Designer no update the Form after create variant.

luster

New Member
I have just been introduced to B4X and am currently getting started.
In the B4J MyFirstProgram example, after edit variant of Internal Designer to change the Abstrace Designer to the specified size, and used Connect to run the "Form", is always 600x600 not updated.

1704603855202.png
 

luster

New Member
And the dimensions of the WYSIWYG window are user resizable. You need to resize the window yourself.

In most cases it is a mistake to try to match a specific resolution.
Because the size of the "Form" in GettingStart in the screenshot is the same as that set by the variant, I thought that the Internal Designer would match it automatically.
Is there any advantage to a design that does not automatic size?
 
Upvote 0

zed

Active Member
Licensed User
You can change the dimensions of the form in different ways

like this
B4J:
#Region Project Attributes
    #MainFormWidth: 1024
    #MainFormHeight: 768
#End Region

or with code
B4J:
'Full Screen
MainForm.WindowWidth = fx.PrimaryScreen.MaxX - fx.PrimaryScreen.MinX
MainForm.WindowLeft = fx.PrimaryScreen.MinX
MainForm.WindowHeight = fx.PrimaryScreen.MaxY - fx.PrimaryScreen.MinY
MainForm.WindowTop = fx.PrimaryScreen.MinY

In the designer, select "Fit to connected device"

Be careful with Full Screen, your screens may not match those of your users.
Use anchors to adjust views.
 
Last edited:
Upvote 0
Top