iOS Question need info about Page_Resize Sub

hello , page resize sub is really ambiguous for me


1-whats page resize sub and how it work ?


2-what views or elements need to be define in Page Resize or when we must use it ?
for example after i work with scrollview and unable to make it work , i get some help from someone thread and know i must put some code like this in page_resize sub to make it work :


B4X:
Private Sub Page1_Resize(Width As Int, Height As Int)
        If scrollview1.IsInitialized=True Then
        scrollview1.Height=100%y
        scrollview1.ContentHeight=Lbl.Height + Lb2.Height +  40dip
        scrollview1.ContentWidth=98%x
        scrollview1.Width=98%x
        End If
End Sub



3-the page1_resize sub is in the Main
if i use Code modules for organize my pages , i need to create page_resize sub for every of them ?

thanks
 
Last edited:
Top