B4J Question Internal Designer UI not showing

aaronk

Well-Known Member
Licensed User
Longtime User
Hi,

I am using the Internal designer to create my UI.

I have created a simple layout of a few labels, buttons and textfields and named this layout Main1.

I have the following code in my AppStart Sub:
B4X:
Sub AppStart (Form1 As Form, Args() As String)
    MainForm = Form1
    MainForm.SetFormStyle("UNIFIED")
    'MainForm.RootPane.LoadLayout("Layout1") 'Load the layout file.
    MainForm.RootPane.LoadLayout("Main1")
    MainForm.Show
End Sub

When I run my project no UI is showing and its just a blank page.

I also noticed in the internal designer it allows me to connect to a device. This pops up with a blank form and noticed when I add buttons it doesn't show in that form (only shows the buttons etc. in the internal designer. Like below..

(would of thought it should show the layout on that blank form as I move things around, if I resize the blank form I see the designer behind change size)

upload_2016-1-2_16-19-33.png


I am running B4J version 4.01

I am running the following Java version:

I did java -version in a command prompt and it returned the following..

upload_2016-1-2_16-23-25.png


Any ideas on why it's not showing the UI ?
 

Attachments

  • upload_2016-1-2_16-24-15.png
    upload_2016-1-2_16-24-15.png
    12.8 KB · Views: 224

aaronk

Well-Known Member
Licensed User
Longtime User
Attached is a demo project, which has this same issue.

I just created a new project, opened the internal designer and added 2 labels, 2 textfields, and 2 buttons and named this layout Main1.

Then added the line below to the AppStart sub in the Main module:

B4X:
MainForm.RootPane.LoadLayout("Main1") 'Load the layout file.

And when running the project the form is blank. (same as in the designer like in the above example)
 

Attachments

  • demo.zip
    1.9 KB · Views: 262
Upvote 0

aaronk

Well-Known Member
Licensed User
Longtime User
Here is what my configuration is set to in B4J:

I think I have got the correct version installed?
(This is what I already had installed)

upload_2016-1-3_20-11-20.png


I noticed that if I remove the following line from the Main Module (From the AppStart Sub) the UI shows when running the project. But still doesn't show in the designer.

B4X:
MainForm.SetFormStyle("UNIFIED")
 
Upvote 0

aaronk

Well-Known Member
Licensed User
Longtime User
I am running B4J on a MacBook Pro so not sure where to find that 3D setting.

The WYSIWYG designer uses the UNIFIED theme
I wonder if you can change it in the next update of B4J so we can change it from UNIFIED to something else ?
 
Upvote 0
Top