Alessandro71 Well-Known Member Licensed User Longtime User Dec 9, 2019 #1 Is it possible to open the dialog with an element already shaking, with ScrollToItemWithError? Actually I'm using the following code Code: Copy prefdialog.ScrollToItemWithError(Preferences.OPT_NOTIFYAPP) Wait For (prefdialog.ShowDialog(Preferences.GetMap, "Ok", "Cancel")) Complete (Result As Int) If Result = xui.DialogResponse_Positive Then but it seems to work only the second time the dialog is opened The first time, no item is shaking
Is it possible to open the dialog with an element already shaking, with ScrollToItemWithError? Actually I'm using the following code Code: Copy prefdialog.ScrollToItemWithError(Preferences.OPT_NOTIFYAPP) Wait For (prefdialog.ShowDialog(Preferences.GetMap, "Ok", "Cancel")) Complete (Result As Int) If Result = xui.DialogResponse_Positive Then but it seems to work only the second time the dialog is opened The first time, no item is shaking
Erel B4X founder Staff member Licensed User Longtime User Dec 10, 2019 #2 Code: Copy Dim sf As Object = p.ShowDialog(Data(0), "OK", "CANCEL") Sleep(0) p.ScrollToItemWithError("your key") Wait For (sf) Complete (Result As Int) Upvote 0
Code: Copy Dim sf As Object = p.ShowDialog(Data(0), "OK", "CANCEL") Sleep(0) p.ScrollToItemWithError("your key") Wait For (sf) Complete (Result As Int)
Alessandro71 Well-Known Member Licensed User Longtime User Dec 10, 2019 #3 works great, thank you Upvote 0