Very strange, I have a sub called Scheme, i put the code in there like
B4X:
#Region Project Attributes
#MainFormWidth: 600
#MainFormHeight: 400
#End Region
Sub Process_Globals
Private fx As JFX
Private MainForm As Form
Private Button1 As Button
End Sub
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.SetFormStyle("UNIFIED")
MainForm.RootPane.LoadLayout("form") 'Load the layout file.
MainForm.Show
scheme
End Sub
Sub scheme
Button1.Left=130
Button1.PrefHeight=66
End Sub
There is no DoEvents method in B4J (due to technical reasons).
You can split the task into several tasks and then use CallSubDelayed to start each task. Another option is to use the threading library and run this task with a background thread.
1. You should manage the layout with the visual designer.
2. To change the layout of a designer view in your code then:
a. Make the change in Panel_Resize event.
b. Or prevent the layout from handling the resize event.
1. You should manage the layout with the visual designer.
2. To change the layout of a designer view in your code then:
a. Make the change in Panel_Resize event.
b. Or prevent the layout from handling the resize event.
Ehm... I tried (before your post, then I'm not so stupid, lol) searching for some form/pane event (thank to the very useful "help of tab"), but I don't know the panel name, so I don't know the full event name.
Ehm... I tried (before your post, then I'm not so stupid, lol) searching for some form/pane event (thank to the very useful "help of tab"), but I don't know the panel name, so I don't know the full event name.