soroush_safarii Member Licensed User Feb 26, 2017 #1 hi guys . best regard and best wish for all user in b4x i build book app with sql and i define chapter from sql in topic menu in my app but what wrong this show ? i define frmtemplate for show in chapter menu like this : but this is show and dont show complete view please help me Attachments Archive.zip Archive.zip 35 KB · Views: 372 photo_2017-02-26_08-30-16.jpg 25.6 KB · Views: 441
hi guys . best regard and best wish for all user in b4x i build book app with sql and i define chapter from sql in topic menu in my app but what wrong this show ? i define frmtemplate for show in chapter menu like this : but this is show and dont show complete view please help me
Erel B4X founder Staff member Licensed User Longtime User Feb 26, 2017 #2 Such layout issues usually happen when you assume that %x and %y are correct outside of the Page_Resize event. They are only correct inside the resize event. Using the designer to create all the layout will solve it. Upvote 0
Such layout issues usually happen when you assume that %x and %y are correct outside of the Page_Resize event. They are only correct inside the resize event. Using the designer to create all the layout will solve it.
soroush_safarii Member Licensed User Feb 26, 2017 #3 Erel said: Such layout issues usually happen when you assume that %x and %y are correct outside of the Page_Resize event. They are only correct inside the resize event. Using the designer to create all the layout will solve it. Click to expand... i use designer , see frmchapter and frmtemplate , but could not show correct layout , please see erel Upvote 0
Erel said: Such layout issues usually happen when you assume that %x and %y are correct outside of the Page_Resize event. They are only correct inside the resize event. Using the designer to create all the layout will solve it. Click to expand... i use designer , see frmchapter and frmtemplate , but could not show correct layout , please see erel
soroush_safarii Member Licensed User Feb 26, 2017 #4 Erel said: Such layout issues usually happen when you assume that %x and %y are correct outside of the Page_Resize event. They are only correct inside the resize event. Using the designer to create all the layout will solve it. Click to expand... what i must do ? Upvote 0
Erel said: Such layout issues usually happen when you assume that %x and %y are correct outside of the Page_Resize event. They are only correct inside the resize event. Using the designer to create all the layout will solve it. Click to expand... what i must do ?
Erel B4X founder Staff member Licensed User Longtime User Feb 26, 2017 #5 I haven't read all the code. I see that the CustomListView is not added with the designer. It should be and it should be anchored to all sides. Make sure that your code doesn't create the layout multiple times. Check this example: https://www.b4x.com/android/forum/threads/multiple-pages-example.48170/#content Upvote 0
I haven't read all the code. I see that the CustomListView is not added with the designer. It should be and it should be anchored to all sides. Make sure that your code doesn't create the layout multiple times. Check this example: https://www.b4x.com/android/forum/threads/multiple-pages-example.48170/#content
soroush_safarii Member Licensed User Feb 26, 2017 #6 Erel said: I haven't read all the code. I see that the CustomListView is not added with the designer. It should be and it should be anchored to all sides. Make sure that your code doesn't create the layout multiple times. Check this example: https://www.b4x.com/android/forum/threads/multiple-pages-example.48170/#content Click to expand... no i doesn't create the layout multiple times , i define layout to show on layout chapter and name it frmtemplate in designer frmtemplate Correctly displayed but when i define frmtemplate to show on frmchapter it isn't correctly displayed , please . one time build and test my app and see what happen when click on topic menu , Upvote 0
Erel said: I haven't read all the code. I see that the CustomListView is not added with the designer. It should be and it should be anchored to all sides. Make sure that your code doesn't create the layout multiple times. Check this example: https://www.b4x.com/android/forum/threads/multiple-pages-example.48170/#content Click to expand... no i doesn't create the layout multiple times , i define layout to show on layout chapter and name it frmtemplate in designer frmtemplate Correctly displayed but when i define frmtemplate to show on frmchapter it isn't correctly displayed , please . one time build and test my app and see what happen when click on topic menu ,
Erel B4X founder Staff member Licensed User Longtime User Feb 26, 2017 #7 1. Remove CustomListView module. You are using an old version. 2. Remove the scroll view, it is not needed. 3. Add cv1 with the designer: It will work properly. I still think that there is a mistake in the way you handle the pages. You shouldn't create a new page each time. Upvote 0
1. Remove CustomListView module. You are using an old version. 2. Remove the scroll view, it is not needed. 3. Add cv1 with the designer: It will work properly. I still think that there is a mistake in the way you handle the pages. You shouldn't create a new page each time.