I have set up a message as follows:
Now if the message is open and I tap the device's "Escape" button, the program executes ExportSpecial. I want it to execute "Return".
I can overcome this by changing the options to "STANDARD","CANCEL","SPECIAL", but that simply looks unacceptable - the cancel option should be the last (on the right).
I have a subroutine (Activity_KeyPress (KeyCode As Int) As Boolean) in the program that processes the device keypress options. However, when the MsgBox2 is visible, this routine is not raised when I tap "Escape".
Is there any way I can keep my layout as is, but process DialogResponse.NEGATIVE when the user taps the device "Escape" button?
B4X:
answ = Msgbox2("ALL DATA SHOWN IN LIST WILL BE EXPORTED", "SELECT EXPORT OPTION", "STANDARD", "SPECIAL", "CANCEL", Null)
Select answ
Case DialogResponse.POSITIVE
ExportStandard
Case DialogResponse.CANCEL
ExportSpecial
Case DialogResponse.NEGATIVE
Return
End Select
Now if the message is open and I tap the device's "Escape" button, the program executes ExportSpecial. I want it to execute "Return".
I can overcome this by changing the options to "STANDARD","CANCEL","SPECIAL", but that simply looks unacceptable - the cancel option should be the last (on the right).
I have a subroutine (Activity_KeyPress (KeyCode As Int) As Boolean) in the program that processes the device keypress options. However, when the MsgBox2 is visible, this routine is not raised when I tap "Escape".
Is there any way I can keep my layout as is, but process DialogResponse.NEGATIVE when the user taps the device "Escape" button?