In a B4XPages project I sometimes run a progressbar by drawing a line on a B4XCanvas that is initialized on a B4XView.
I noticed that when this progressbar is running and I move way from the app and then return to it, the progressbar is not visible anymore.
All else is working fine.
The solution to this seems to be to initialize the B4XCanvas in Sub B4XPage_Appear:
Is this the right way?
RBS
I noticed that when this progressbar is running and I move way from the app and then return to it, the progressbar is not visible anymore.
All else is working fine.
The solution to this seems to be to initialize the B4XCanvas in Sub B4XPage_Appear:
B4X:
Sub Class_Globals
Private lblPatMap As B4XView
Private cvsLabelProgress As B4XCanvas
End Sub
Sub Sub B4XPage_Appear
cvsLabelProgress.Initialize(lblPatMap)
End Sub
Is this the right way?
RBS