janderkan Well-Known Member Licensed User Longtime User Mar 14, 2021 #1 Hi I use B4XPages and in 1 page I open a PreferenceDialog B4X: Wait For (prefdialog.ShowDialog(prefMap, Main.Loc.Localize("txt_save"), Main.Loc.Localize("txt_cancel"))) Complete (Result As Int) Based on an event I close the page, but next time I open the page, the PreferenceDialog is still there. Is there a way to close the PreferenceDialog programmatically ? Jan
Hi I use B4XPages and in 1 page I open a PreferenceDialog B4X: Wait For (prefdialog.ShowDialog(prefMap, Main.Loc.Localize("txt_save"), Main.Loc.Localize("txt_cancel"))) Complete (Result As Int) Based on an event I close the page, but next time I open the page, the PreferenceDialog is still there. Is there a way to close the PreferenceDialog programmatically ? Jan
William Lancee Well-Known Member Licensed User Longtime User Mar 15, 2021 #2 You can close the the dialog at the B4X_Appear Sub. B4X: prefDialog.Dialog.Close(xui.DialogResponse_Cancel) Upvote 0
You can close the the dialog at the B4X_Appear Sub. B4X: prefDialog.Dialog.Close(xui.DialogResponse_Cancel)