Hi All
I'm currently designing a system in b4a, I have designed my layout based on my 10" tablet which is connected wirelessly via b4a bridge. I then started thinking about multiple screen sizes and did some reading up on the designer scripts. I have made the below script as to my understanding of what I read in the guide but when I upload to UI cloud everything is completely out of whack.
'All variants script
AutoScaleAll
autoscalerate(0.5)
'Scale panel 1
Panel2.Right = 41.2%x
Panel2.Height = 61%x
Panel2.Width = 40.2%x
'Scale all bauutons in panel2
cmdInput7.Right = 14.7%x
cmdInput7.Height = 12.2%x
cmdInput7.Width = 12.3%x
cmdInput8.Right = 27.3%x
cmdInput8.Height = 12.2%x
cmdInput8.Width = 12.3%x
cmdInput9.Right = 39.9%x
cmdInput9.Height = 12.2%x
cmdInput9.Width = 12.3%x
cmdInput4.Right = 14.7%x
cmdInput4.Height = 12.2%x
cmdInput4.Width = 12.3%x
cmdInput5.Right = 27.3%x
cmdInput5.Height = 12.2%x
cmdInput5.Width = 12.3%x
cmdInput6.Right = 39.9%x
cmdInput6.Height = 12.2%x
cmdInput6.Width = 12.3%x
cmdInput1.Right = 14.7%x
cmdInput1.Height = 12.2%x
cmdInput1.Width = 12.3%x
cmdInput2.Right = 27.3%x
cmdInput2.Height = 12.2%x
cmdInput2.Width = 12.3%x
cmdInput3.Right = 39.9%x
cmdInput3.Height = 12.2%x
cmdInput3.Width = 12.3%x
cmdClear.Right = 14.8%x
cmdClear.Height = 12.2%x
cmdClear.Width = 12.3%x
cmdInput0.Right = 27.3%x
cmdInput0.Height = 12.2%x
cmdInput0.Width = 12.3%x
cmdOk.Right = 39.9%x
cmdOk.Height = 12.2%x
cmdOk.Width = 12.3%x
'Scale the text box in panel2
txtPassword.Right = 40.3%x
txtPassword.Height = 8%x
txtPassword.Width = 37.5%x
To get these percentages I have type them in until the layout is correct in the designer. Am I doing this correctly ? have I missed something in the script ? Please could someone point me in the right direction or tell me what i'm doing wrong. I would greatly appreciate the help.
Many Thanks in advance
AJ
I'm currently designing a system in b4a, I have designed my layout based on my 10" tablet which is connected wirelessly via b4a bridge. I then started thinking about multiple screen sizes and did some reading up on the designer scripts. I have made the below script as to my understanding of what I read in the guide but when I upload to UI cloud everything is completely out of whack.
'All variants script
AutoScaleAll
autoscalerate(0.5)
'Scale panel 1
Panel2.Right = 41.2%x
Panel2.Height = 61%x
Panel2.Width = 40.2%x
'Scale all bauutons in panel2
cmdInput7.Right = 14.7%x
cmdInput7.Height = 12.2%x
cmdInput7.Width = 12.3%x
cmdInput8.Right = 27.3%x
cmdInput8.Height = 12.2%x
cmdInput8.Width = 12.3%x
cmdInput9.Right = 39.9%x
cmdInput9.Height = 12.2%x
cmdInput9.Width = 12.3%x
cmdInput4.Right = 14.7%x
cmdInput4.Height = 12.2%x
cmdInput4.Width = 12.3%x
cmdInput5.Right = 27.3%x
cmdInput5.Height = 12.2%x
cmdInput5.Width = 12.3%x
cmdInput6.Right = 39.9%x
cmdInput6.Height = 12.2%x
cmdInput6.Width = 12.3%x
cmdInput1.Right = 14.7%x
cmdInput1.Height = 12.2%x
cmdInput1.Width = 12.3%x
cmdInput2.Right = 27.3%x
cmdInput2.Height = 12.2%x
cmdInput2.Width = 12.3%x
cmdInput3.Right = 39.9%x
cmdInput3.Height = 12.2%x
cmdInput3.Width = 12.3%x
cmdClear.Right = 14.8%x
cmdClear.Height = 12.2%x
cmdClear.Width = 12.3%x
cmdInput0.Right = 27.3%x
cmdInput0.Height = 12.2%x
cmdInput0.Width = 12.3%x
cmdOk.Right = 39.9%x
cmdOk.Height = 12.2%x
cmdOk.Width = 12.3%x
'Scale the text box in panel2
txtPassword.Right = 40.3%x
txtPassword.Height = 8%x
txtPassword.Width = 37.5%x
To get these percentages I have type them in until the layout is correct in the designer. Am I doing this correctly ? have I missed something in the script ? Please could someone point me in the right direction or tell me what i'm doing wrong. I would greatly appreciate the help.
Many Thanks in advance
AJ