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?
I am in B4J
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?
B4X:
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