S susu Well-Known Member Licensed User Longtime User Aug 11, 2015 #1 Hi, I faced a strange problem with Msgbox2 and Pages. I used SideMenu, custom Navigation bar in my app. Everything was fine until I added some Msgbox2. It seems the Pages loaded again and again when I moved from page to page. It's hard to tell about it by word. Please try the attached sample project below. Ps: I took me 2 days to find out Msgbox2 is the reason! Attachments problemwithmsgbox2.zip problemwithmsgbox2.zip 101.4 KB · Views: 387
Hi, I faced a strange problem with Msgbox2 and Pages. I used SideMenu, custom Navigation bar in my app. Everything was fine until I added some Msgbox2. It seems the Pages loaded again and again when I moved from page to page. It's hard to tell about it by word. Please try the attached sample project below. Ps: I took me 2 days to find out Msgbox2 is the reason!
Erel B4X founder Staff member Licensed User Longtime User Aug 11, 2015 #2 I currently can't test it. I will test it next week. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Aug 16, 2015 #3 There are many programming errors in this code. Some of them: 1. You need to create each page once and load the layout once. 2. Don't load the layout in the Resize event. 3. Don't create any UI element multiple times. 4. Don't remove the views in Page_Disappear. 5. Don't replace the KeyController every time. Instead replace it once. Upvote 0
There are many programming errors in this code. Some of them: 1. You need to create each page once and load the layout once. 2. Don't load the layout in the Resize event. 3. Don't create any UI element multiple times. 4. Don't remove the views in Page_Disappear. 5. Don't replace the KeyController every time. Instead replace it once.
S susu Well-Known Member Licensed User Longtime User Aug 17, 2015 #4 For me, iOS's pages is harder to understand than Android's activities. Could you please make an example project base on my code? Then I can learn and avoid to make mistake again. Thank you so much. Upvote 0
For me, iOS's pages is harder to understand than Android's activities. Could you please make an example project base on my code? Then I can learn and avoid to make mistake again. Thank you so much.
Erel B4X founder Staff member Licensed User Longtime User Aug 17, 2015 #5 Once you understand how iOS works you will see that it is actually simpler than Android. Start with this tutorial: https://www.b4x.com/android/forum/threads/multiple-pages-example.48170/#content Upvote 0
Once you understand how iOS works you will see that it is actually simpler than Android. Start with this tutorial: https://www.b4x.com/android/forum/threads/multiple-pages-example.48170/#content
S susu Well-Known Member Licensed User Longtime User Aug 17, 2015 #6 I read that tutorial but I still not understand it. Maybe my English is not good. The example code I wrote base on your tutorial but it's not correct. I forgot to ask you, why my code works if there's no MsgBox2 ? Upvote 0
I read that tutorial but I still not understand it. Maybe my English is not good. The example code I wrote base on your tutorial but it's not correct. I forgot to ask you, why my code works if there's no MsgBox2 ?
Erel B4X founder Staff member Licensed User Longtime User Aug 18, 2015 #7 susu said: I forgot to ask you, why my code works if there's no MsgBox2 ? Click to expand... As I wrote there are several issues in your code. The problem is revealed when you show the msgbox. However the msgbox is not the cause of this problem. Upvote 0
susu said: I forgot to ask you, why my code works if there's no MsgBox2 ? Click to expand... As I wrote there are several issues in your code. The problem is revealed when you show the msgbox. However the msgbox is not the cause of this problem.
Ju Yang Active Member Licensed User Longtime User Jun 13, 2016 #8 I encountered the same problem,I do not know why this is so.Can you help me please? Upvote 0
Ju Yang Active Member Licensed User Longtime User Jun 13, 2016 #9 Erel said: As I wrote there are several issues in your code. The problem is revealed when you show the msgbox. However the msgbox is not the cause of this problem. Click to expand... What is the main cause of the problem? Upvote 0
Erel said: As I wrote there are several issues in your code. The problem is revealed when you show the msgbox. However the msgbox is not the cause of this problem. Click to expand... What is the main cause of the problem?