vecino Well-Known Member Licensed User Longtime User May 23, 2024 #1 Hi, my question is if there is any way that a dialog can be closed without user intervention, for example after 10 seconds. B4X: Msgbox2Async("Print?", "Warning", "Yes",""", "No",Null,False) And after the time that the dialog is closed by answering "No". Thank you very much.
Hi, my question is if there is any way that a dialog can be closed without user intervention, for example after 10 seconds. B4X: Msgbox2Async("Print?", "Warning", "Yes",""", "No",Null,False) And after the time that the dialog is closed by answering "No". Thank you very much.
Solution C C Chris2 May 23, 2024 Msgbox2Async Hide Hello How can i programmaticly hide or dissapear a previous called msg box that is waiting for a result. Thanks in advance Philip www.b4x.com Or, if you're using xui.Msgbox2Async, Close xui.MsgboxAsync or xui.Msgbox2Async with code Based on @Erel's code here.... xui.MsgboxAsync & xui.Msgbox2Async don't have a "cancel" method, so trying to use it generates an error: java.lang.RuntimeException: Method: cancel not found in: javafx.scene.control.Alert Instead, the 'close' or 'hide' methods can be used: Sub Globals Dim... www.b4x.com
Msgbox2Async Hide Hello How can i programmaticly hide or dissapear a previous called msg box that is waiting for a result. Thanks in advance Philip www.b4x.com Or, if you're using xui.Msgbox2Async, Close xui.MsgboxAsync or xui.Msgbox2Async with code Based on @Erel's code here.... xui.MsgboxAsync & xui.Msgbox2Async don't have a "cancel" method, so trying to use it generates an error: java.lang.RuntimeException: Method: cancel not found in: javafx.scene.control.Alert Instead, the 'close' or 'hide' methods can be used: Sub Globals Dim... www.b4x.com
C Chris2 Well-Known Member Licensed User Longtime User May 23, 2024 #2 Msgbox2Async Hide Hello How can i programmaticly hide or dissapear a previous called msg box that is waiting for a result. Thanks in advance Philip www.b4x.com Or, if you're using xui.Msgbox2Async, Close xui.MsgboxAsync or xui.Msgbox2Async with code Based on @Erel's code here.... xui.MsgboxAsync & xui.Msgbox2Async don't have a "cancel" method, so trying to use it generates an error: java.lang.RuntimeException: Method: cancel not found in: javafx.scene.control.Alert Instead, the 'close' or 'hide' methods can be used: Sub Globals Dim... www.b4x.com Upvote 2 Solution
Msgbox2Async Hide Hello How can i programmaticly hide or dissapear a previous called msg box that is waiting for a result. Thanks in advance Philip www.b4x.com Or, if you're using xui.Msgbox2Async, Close xui.MsgboxAsync or xui.Msgbox2Async with code Based on @Erel's code here.... xui.MsgboxAsync & xui.Msgbox2Async don't have a "cancel" method, so trying to use it generates an error: java.lang.RuntimeException: Method: cancel not found in: javafx.scene.control.Alert Instead, the 'close' or 'hide' methods can be used: Sub Globals Dim... www.b4x.com
vecino Well-Known Member Licensed User Longtime User May 23, 2024 #3 I'm going to try it now. Thank you very much. Upvote 0
vecino Well-Known Member Licensed User Longtime User May 24, 2024 #4 Fantastic, it works perfectly. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User May 26, 2024 #5 BTW, worth checking B4XTimedTemplate + B4XDialog (XUI Views). Upvote 0
vecino Well-Known Member Licensed User Longtime User May 26, 2024 #6 Hello, is it possible to get an example of how to do it? Thank you very much. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User May 27, 2024 #7 See the XUI Views example: https://www.b4x.com/android/forum/t...ss-platform-views-and-dialogs.100836/#content Upvote 0
See the XUI Views example: https://www.b4x.com/android/forum/t...ss-platform-views-and-dialogs.100836/#content