Olaan Expert Licensed User Longtime User Dec 30, 2013 #1 Hi Erel, Refer to this, In the example,you show coding manage to set color on backgroud by selecting from model dialog. If I need to have cancel buttion in model dialog in order to unset any color,How to coding? (I know only ExitApplication command to quit program,but I don't know how to return back to main app from model dialog when I pressed the cancel button) P.S. In B4A,we use hide command,but In B4J I don't know?
Hi Erel, Refer to this, In the example,you show coding manage to set color on backgroud by selecting from model dialog. If I need to have cancel buttion in model dialog in order to unset any color,How to coding? (I know only ExitApplication command to quit program,but I don't know how to return back to main app from model dialog when I pressed the cancel button) P.S. In B4A,we use hide command,but In B4J I don't know?
Erel B4X founder Staff member Licensed User Longtime User Dec 30, 2013 #2 You should call frm.Close to close the modal form and return the result. You can add a global variable that will be used to return the result. This will allow you to return a "cancel" value. Upvote 0
You should call frm.Close to close the modal form and return the result. You can add a global variable that will be used to return the result. This will allow you to return a "cancel" value.