Hello, World!
I have a Panel defined on the designer with a specific <Width> and <Height>, I need change that size depending on an action.
For Example:
But for some reason does not change the Width and Height
On the Designer the Panel2 Width=1 and Height=1
Thanks in advance for any help
I have a Panel defined on the designer with a specific <Width> and <Height>, I need change that size depending on an action.
For Example:
B4X:
Sub Globals
Dim Panel1 As Panel
Dim Button1, Button2 As Button
End Sub
...
Sub Button1_Click
panel1.Width = 100%x
panel1.Height = 100%y
End Sub
Sub Button2_Click
panel1.Width = 5%x
panel1.Height = 5%y
End Sub
But for some reason does not change the Width and Height
On the Designer the Panel2 Width=1 and Height=1
Thanks in advance for any help