Sub Process_Globals
Private fx As JFX
Private MainForm As Form
Private xui As XUI
Private Button1 As B4XView
Private AnotherProgressBar1 As AnotherProgressBar
Private ProgrBarStep As Int
End Sub
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.RootPane.LoadLayout("Layout1")
MainForm.Show
End Sub
Sub Button1_Click
ProgrBarStep = (450 / 789) * 100
AnotherProgressBar1.Value = ProgrBarStep
AnotherProgressBar1.SetValueNoAnimation(ProgrBarStep)
AnotherProgressBar1.Visible = True
Sleep(0)
Test
End Sub
Private Sub Test
Do While AnotherProgressBar1.Value < 100
AnotherProgressBar1.Value = AnotherProgressBar1.Value + 1
Log(AnotherProgressBar1.Value)
Sleep(50)
Loop
AnotherProgressBar1.Visible = False
End Sub