S sheriffporter Member Licensed User Longtime User Feb 5, 2012 #1 I am using a dialog input box to get user input. I am wondering if there is a way to execute event when the user clicks "OK" on the dialog box. Similar to a button press event, but triggered by pressing "OK" on the input dialog box. Can't seem to find any language to accomplish that.
I am using a dialog input box to get user input. I am wondering if there is a way to execute event when the user clicks "OK" on the dialog box. Similar to a button press event, but triggered by pressing "OK" on the input dialog box. Can't seem to find any language to accomplish that.
Erel B4X founder Staff member Licensed User Longtime User Feb 5, 2012 #2 Something like: B4X: Sub Activity_Create(FirstTime As Boolean) Dim res As Int res = Msgbox2("aaa", "bbb", "Yes", "Cancel", "No", Null) If res = DialogResponse.POSITIVE Then DoSomething End If End Sub Sub DoSomething End Sub Upvote 0
Something like: B4X: Sub Activity_Create(FirstTime As Boolean) Dim res As Int res = Msgbox2("aaa", "bbb", "Yes", "Cancel", "No", Null) If res = DialogResponse.POSITIVE Then DoSomething End If End Sub Sub DoSomething End Sub