Use setBackCommand on the form. Install a command to the back action. In its actionPerformed check if you have an interaction dialog to dispose and dispose that. If not go to the previous form.
On Thursday, December 3, 2020 at 11:49:09 AM UTC+2 P5music wrote: > *I have a method call to set the back command in my utility dialogs, in a > special class with static methods.* > *Now I have to use InteractionDialog instead of Dialog but I do not know > how to implement this kind of line* > *if (cancellable) alertDialog.setBackCommand(backCommand);* > *Thanks in advance* > -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/8feb0265-5d14-4db5-8aa1-f4508c884a0en%40googlegroups.com.
