ilan Expert Licensed User Longtime User Jan 13, 2015 #1 hi everyone... i have difficulty to use the scrollview in b4i i am trying to add a panel to it but the panel is not showing correct (i see only a part of the panel) and its also not in the right left and top position i set (0,0) this is my code what is wrong please?? (i am adding the scrollview in designer and also the panel) Code: Copy scr1.ContentWidth = menuchoose.Width scr1.ContentHeight = menuchoose.Height scr1.Panel.AddView(menuchoose,0,0,scr1.Width,scr1.Height)
hi everyone... i have difficulty to use the scrollview in b4i i am trying to add a panel to it but the panel is not showing correct (i see only a part of the panel) and its also not in the right left and top position i set (0,0) this is my code what is wrong please?? (i am adding the scrollview in designer and also the panel) Code: Copy scr1.ContentWidth = menuchoose.Width scr1.ContentHeight = menuchoose.Height scr1.Panel.AddView(menuchoose,0,0,scr1.Width,scr1.Height)
klaus Expert Licensed User Longtime User Jan 13, 2015 #2 In what routine is your code ? It should be in Page1_Resize ! Upvote 0
ilan Expert Licensed User Longtime User Jan 13, 2015 #3 klaus said: In what routine is your code ? It should be in Page1_Resize ! Click to expand... its in page1_resize... this is what i get (the black border is the scrollview) Upvote 0
klaus said: In what routine is your code ? It should be in Page1_Resize ! Click to expand... its in page1_resize... this is what i get (the black border is the scrollview)
klaus Expert Licensed User Longtime User Jan 13, 2015 #4 Try this: Code: Copy scr1.Panel.AddView(menuchoose,0,0,scr1.Width,scr1.Height) scr1.ContentWidth = menuchoose.Width scr1.ContentHeight = menuchoose.Height Or post a small project showing the problem. Upvote 0
Try this: Code: Copy scr1.Panel.AddView(menuchoose,0,0,scr1.Width,scr1.Height) scr1.ContentWidth = menuchoose.Width scr1.ContentHeight = menuchoose.Height Or post a small project showing the problem.
ilan Expert Licensed User Longtime User Jan 14, 2015 #5 thanx klaus i will try it (but as far as i remember i tried all available possibilities incl. the one you wrote) i will try to make a simple project and upload it here... thanx Upvote 0
thanx klaus i will try it (but as far as i remember i tried all available possibilities incl. the one you wrote) i will try to make a simple project and upload it here... thanx
ilan Expert Licensed User Longtime User Jan 14, 2015 #6 thanx klaus i figured it out this code worked for me: Code: Copy scr1.Panel.AddView(menuchoose,0,0,menuchoose.Width,menuchoose.Height) scr1.ContentHeight = menuchoose.Height scr1.ContentWidth = menuchoose.Width my mistake was that after i add the panel to the scrview i changed the left pos. of the panel... (because i didnot used any scrview in the first version) now i delete those lines and it worked... thanx a lot... Upvote 0
thanx klaus i figured it out this code worked for me: Code: Copy scr1.Panel.AddView(menuchoose,0,0,menuchoose.Width,menuchoose.Height) scr1.ContentHeight = menuchoose.Height scr1.ContentWidth = menuchoose.Width my mistake was that after i add the panel to the scrview i changed the left pos. of the panel... (because i didnot used any scrview in the first version) now i delete those lines and it worked... thanx a lot...