There is a problem in Resize event when it raise after show page
I have a Show subroutine when i call it,it show page
And after show page,the Page1_Resize event is raised
It is working
But i add below code in i show page
Log("After show page : " & DateTime.Time(DateTime.Now))
and again use mention code in Page1_Resize
Log("When page_resize event raised : " & DateTime.Time(DateTime.Now))
Result is example :
After show page : 20:12:20
When page_resize event raised : 20:12:21
It take 500ms for raise page1_resize event
My show function is :
The ChangePanelFont subroutine,change all views font in 100 ms (I removed it but result is same)
I have a Show subroutine when i call it,it show page
And after show page,the Page1_Resize event is raised
It is working
But i add below code in i show page
Log("After show page : " & DateTime.Time(DateTime.Now))
and again use mention code in Page1_Resize
Log("When page_resize event raised : " & DateTime.Time(DateTime.Now))
Result is example :
After show page : 20:12:20
When page_resize event raised : 20:12:21
It take 500ms for raise page1_resize event
My show function is :
B4X:
Sub Show
Page1.Initialize("Page1")
Page1.Tag = "profile"
Page1.RootPanel.LoadLayout("frmprofile")
Views.ChangePanelFont(Page1.RootPanel,Alis.GetAppFont)
Alis.ShowPage(Page1)
Log("After show page : " & DateTime.Time(DateTime.Now))
End Sub
Sub Page1_Resize(Width as int,Height as int)
Log("When page_resize event raised : " & DateTime.Time(DateTime.Now))
End Sub
The ChangePanelFont subroutine,change all views font in 100 ms (I removed it but result is same)