mrossen Active Member Licensed User Longtime User Sep 22, 2019 #1 Hi, Anyone how to hide/show the B4XProgressBar in code? like Code: Copy B4XProgressBar.visible = false Mogens
Hi, Anyone how to hide/show the B4XProgressBar in code? like Code: Copy B4XProgressBar.visible = false Mogens
klaus Expert Licensed User Longtime User Sep 22, 2019 #2 You have two possibilities: 1. In the B4XProgressbar module, set mBase as Public Public mBase As B4XView 'ignore And then in the main code: B4XProgressbar1.mBase.Visible = False 2. Add the Visible property in the B4XProgressbar module. Code: Copy 'sets or gets the Visible property Public Sub getVisible As Boolean Return mBase.Visible End Sub Public Sub setVisible(Visible As Boolean) mBase.Visible = Visible End Sub And then in the main code: B4XProgressbar1.Visible = False Upvote 0
You have two possibilities: 1. In the B4XProgressbar module, set mBase as Public Public mBase As B4XView 'ignore And then in the main code: B4XProgressbar1.mBase.Visible = False 2. Add the Visible property in the B4XProgressbar module. Code: Copy 'sets or gets the Visible property Public Sub getVisible As Boolean Return mBase.Visible End Sub Public Sub setVisible(Visible As Boolean) mBase.Visible = Visible End Sub And then in the main code: B4XProgressbar1.Visible = False
mrossen Active Member Licensed User Longtime User Sep 22, 2019 #3 Hi Klaus, Thanks, it works perfect Mogens Upvote 0