Hello, still new so please correct me if I am not posting correctly.
I read this latest post (3) Multiple executions of the same loadlayout | B4X Programming Forum
My question is may be considered similar and not sure whether to respond to that thread or start a new one, I started new to be on the safe side.
My question arise as a result experimenting with my plotting project Plotting like a geometric lathe. | B4X Programming Forum
In a Layout I have a button(Plot), a panel and a button(Clear) When I press Plot button which has a loop and random variable values, the plotting start on the Panel.
It may take up to 1min to complete the plot. If I wait for the plot to complete and press the Clear button that has the statement Activity.LoadLayout("Layout1") it clears the panel like as in the old times (Clearscreen), not the buttons. Now if didn't like the plot and not wait for the plot to complete and press clear, it clears the plot but it automatically continues to plot where it left off and if the plot button is pressed an new plot starts on top of it. Moving back and forward from one activity to another does not clear the panel, but if I press the phones back button all the way to put it in the background and bring it back, all results in all the layouts have been cleared (refreshed) even if the plotting has not completed. So I should cut my story short and ask the question.
How to properly clear my plotting panel and any actions not completed?
I read this latest post (3) Multiple executions of the same loadlayout | B4X Programming Forum
My question is may be considered similar and not sure whether to respond to that thread or start a new one, I started new to be on the safe side.
My question arise as a result experimenting with my plotting project Plotting like a geometric lathe. | B4X Programming Forum
In a Layout I have a button(Plot), a panel and a button(Clear) When I press Plot button which has a loop and random variable values, the plotting start on the Panel.
It may take up to 1min to complete the plot. If I wait for the plot to complete and press the Clear button that has the statement Activity.LoadLayout("Layout1") it clears the panel like as in the old times (Clearscreen), not the buttons. Now if didn't like the plot and not wait for the plot to complete and press clear, it clears the plot but it automatically continues to plot where it left off and if the plot button is pressed an new plot starts on top of it. Moving back and forward from one activity to another does not clear the panel, but if I press the phones back button all the way to put it in the background and bring it back, all results in all the layouts have been cleared (refreshed) even if the plotting has not completed. So I should cut my story short and ask the question.
How to properly clear my plotting panel and any actions not completed?