D davemorris Active Member Licensed User Longtime User Nov 30, 2020 #1 Hi Guys I have a problem with xui.Msgbox2Async() it remains on the page until you click on one of its options (i.e. positive, negative or cancel). I need to remove the message programmatically or certainly remove it when it moves on to the next page. Code: Copy Dim sf As Object = xui.Msgbox2Async("Please click the link in the activation email", "Account Not Activated", "Resend email", "Retry","New account" , Null) Wait for (sf) msgbox_result (result As Int) Switch (result) ...... In my case, the message box asks the customer to activate an account by clicking on a link in an activation email. Assuming they do click on this link, then App detects this (by using a timer) and should automatically clear the msgbox and allow the App to run (by moving to the next page). I am using B4X and it works with Android version but that is because it is switching activities. Can anyone help? Dave
Hi Guys I have a problem with xui.Msgbox2Async() it remains on the page until you click on one of its options (i.e. positive, negative or cancel). I need to remove the message programmatically or certainly remove it when it moves on to the next page. Code: Copy Dim sf As Object = xui.Msgbox2Async("Please click the link in the activation email", "Account Not Activated", "Resend email", "Retry","New account" , Null) Wait for (sf) msgbox_result (result As Int) Switch (result) ...... In my case, the message box asks the customer to activate an account by clicking on a link in an activation email. Assuming they do click on this link, then App detects this (by using a timer) and should automatically clear the msgbox and allow the App to run (by moving to the next page). I am using B4X and it works with Android version but that is because it is switching activities. Can anyone help? Dave
Erel B4X founder Staff member Licensed User Longtime User Dec 1, 2020 #2 Best option is to use B4XDialog. It will be cross platform and easy to cancel and customize. With the built-in Msgbox, you need to call dismissWithClicked...: https://www.b4x.com/android/forum/threads/msgbox-with-timeout.93646/#content Upvote 0
Best option is to use B4XDialog. It will be cross platform and easy to cancel and customize. With the built-in Msgbox, you need to call dismissWithClicked...: https://www.b4x.com/android/forum/threads/msgbox-with-timeout.93646/#content