Sub AutoSize_ResizeViews (Number As Int, Left As Float, Top As Float, Width As Float, Height As Float)
Select Number
Case 1
'view 1 (Got this number from AutoS.getViewId)
ScrollView1.SetLayout(Left*1%X, Top*1%Y, Width*1%X, Height*1%Y)
Case 2
imgView.SetLayout(Left*1%X, Top*1%Y, Width*1%X, Height*1%Y)
Case 3
Button1.SetLayout(Left*1%X, Top*1%Y, Width*1%X, Height*1%Y)
Case 4
Msgbox("4","") 'not called because there are no more views.
End Select
End Sub