Hello!
I am developing an application in B4J.
From a main form I call another in modalform, which contains a progressbar with value -1, so that it should be constantly "scrolling", but it doesn't move.
I call the modalform as follows:
              
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
 
And the modalform code is the following:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
 
Why the progressbar doesn't work?
Thanks.
			
			I am developing an application in B4J.
From a main form I call another in modalform, which contains a progressbar with value -1, so that it should be constantly "scrolling", but it doesn't move.
I call the modalform as follows:
			
				B4X:
			
		
		
		Private modalformwait As modProgress
modalformwait.Initialize(MainForm)
modalformwait.ShowAnd the modalform code is the following:
			
				B4X:
			
		
		
		Sub Class_Globals
 
Private fx As JFX
Private xui As XUI
Private frmProgress As Form
Private ProgressBar1 As ProgressBar
 
End Sub
Public Sub Initialize (Parent As Form)
 
frmProgress.Initialize("frmProgress", 400dip, 200dip)
frmProgress.Resizable = False
frmProgress.SetFormStyle("UNDECORATED")
frmProgress.RootPane.LoadLayout("frmProgress")
frmProgress.Title = "Wait..."
    frmProgress.SetOwner(Parent)
 
ProgressBar1.Progress = -1
End Sub
Public Sub Show
 
    frmProgress.Show
 
End Sub
Public Sub Hide
    frmProgress.Close
 
End Sub
Sub frmProgress_CloseRequest (EventData As Event)
 
    EventData.Consume
End SubWhy the progressbar doesn't work?
Thanks.
 
				 
 
		 
 
		 
 
		 
 
		