Hello,
I have a login screen. With the use of designer scripts I managed to get the layout I want for different screen sizes.
I have a panel with an image (size of the image is 703x93).
I want to have the image on top in the middel of the screen.
How can I achieve this? Also the logo has to resize for different screen sizes (small screen--> small logo)
This is my designer script so far, the panel is not working, other controls size ok.µ
I have a login screen. With the use of designer scripts I managed to get the layout I want for different screen sizes.
I have a panel with an image (size of the image is 703x93).
I want to have the image on top in the middel of the screen.
How can I achieve this? Also the logo has to resize for different screen sizes (small screen--> small logo)
This is my designer script so far, the panel is not working, other controls size ok.µ
B4X:
'All variants script
AutoScaleRate(0.5)
AutoScaleAll
Panel1.HorizontalCenter = 50%y
Panel1.Top = 4dip
Panel1.Width = Min(60%x, 60%y)
Label3.Width = 100%x - 8dip
Label3.Top = Panel1.height + Panel1.top + 4dip
Label3.Left = 4dip
btnCancel.Left = 4dip
btnCancel.Bottom = 100%y - 4dip
btnLogin.Bottom = 100%y - 4dip
btnLogin.Right = 100%x-4dip
Label1.top = Label3.Bottom + 4dip
Label1.Width = 50%x
Label1.Left = 4dip
Label2.Width = 50%x
Label2.top = (Label1.top + Label1.Height) + 4dip
Label2.Left = 4dip
txtGebruikersNaam.Top = Label3.bottom + 4dip
txtGebruikersNaam.width = 50%x - 12dip
txtGebruikersNaam.Left = (Label1.left + Label1.width + 4dip)
txtPaswoord.width = 50%x - 12dip
txtPaswoord.Left = (Label2.left + Label2.width + 4dip)
txtPaswoord.Top = (txtGebruikersNaam.Top + txtGebruikersNaam.Height) + 4dip