I don't understand this thing
If I drag a form with the mouse, every time I click on the Button I read the right width. If, however, in Create, I set it myself, (for example at 1200) the Log always returns 1200, whatever the width I set by dragging with the mouse
Why?
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
Root.Width=1200 ' If I comment this statement, the Log returns me the right Width value.
End Sub
Sub Button1_Click
Log(Root.Width)
End Sub
I am in B4J