Hi guys,
I'm using MainForm as a Splash screen in a FadeIn/FadeOut animation and at the end of it I'm trying to resize the form to the loaded layout size...
I have tried several approaches, but nothing seems to work...
Here's the sub that clears the rootpane from its previous contents and then loads the new layout...
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
I know I can use a separate form to show my splash screen, but that is not my issue.
I just want to resize Mainform to the loaded layout!
			
			I'm using MainForm as a Splash screen in a FadeIn/FadeOut animation and at the end of it I'm trying to resize the form to the loaded layout size...
I have tried several approaches, but nothing seems to work...
Here's the sub that clears the rootpane from its previous contents and then loads the new layout...
			
				B4X:
			
		
		
		Sub FadeToLauncher_Tick
    Log("Launcher")
    FadeToLaunchTimer.Enabled = False
    MainForm.RootPane.RemoveAllNodes
    MainForm.RootPane.LoadLayout("Launcher")
    MainForm.Initialize("Launcher", -1, -1) 'This SHOULD resize the form automatically, but it doesn't
End SubI know I can use a separate form to show my splash screen, but that is not my issue.
I just want to resize Mainform to the loaded layout!
 
				 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		