I'm trying to call AS TimePickerDialog component from another B4XPage. If I close the dialog using OK, NO and Cancel button the dialog closes and I stay on the B4XPage that called this dialog. But if I close the dialog using Back button P4XPage closes and I'm on MainPage. Is there a way to fix this?
To Alexander:
The basic B4XDialog has a Visible method. Your component doesn't have it, nor does it have an As method for casting. Is there a way to check the visibility of a component?
B4X:
Private Sub B4XPage_CloseRequest As ResumableSub
If TimePickerDialog.Visible Then '- method not exist
TimePickerDialog.Close
Return False
Else
Return True
End If
End Sub
A dialog that prompts the user for the time of day using a TimePicker. I spend a lot of time in creating views, like this and to create a high quality view cost a lot of time. If you want to support me and further views, then you can do it here by Paypal or with a coffee. :) Private Sub...