Guenter Becker Active Member Licensed User Nov 3, 2020 #1 Hello this is the man with troubles again who needs your help In my custom control I like to implement a scroll view because the content of the controls panel is often higher then the height of the screen. I coded as followes in the page crate event: ' mainpanel setup pnl.Color=props.Get("MenuBackColor") pnl.Width =mBase.Width : pnl.height=2*mBase.height ' add mscrollview to layout scv.Initialize(mBase.height) scv.Width = mBase.width scv.Panel.AddView(pnl,0,0,pnl.Width,pnl.Height) mBase.AddView(scv,0,0,mBase.Width,mBase.height) And all content of the panels child views are pretty shown but only the part of the mbase height. I am not able to scroll down to the end of the panel. What is going wrong? Thank you in advance stay well
Hello this is the man with troubles again who needs your help In my custom control I like to implement a scroll view because the content of the controls panel is often higher then the height of the screen. I coded as followes in the page crate event: ' mainpanel setup pnl.Color=props.Get("MenuBackColor") pnl.Width =mBase.Width : pnl.height=2*mBase.height ' add mscrollview to layout scv.Initialize(mBase.height) scv.Width = mBase.width scv.Panel.AddView(pnl,0,0,pnl.Width,pnl.Height) mBase.AddView(scv,0,0,mBase.Width,mBase.height) And all content of the panels child views are pretty shown but only the part of the mbase height. I am not able to scroll down to the end of the panel. What is going wrong? Thank you in advance stay well
Jeffrey Cameron Well-Known Member Licensed User Longtime User Nov 3, 2020 #2 Guenter Becker said: What is going wrong? Click to expand... You need to set the height of the scrollview's inner panel: B4X: scv.Width = mBase.width scv.Panel.AddView(pnl,0,0,pnl.Width,pnl.Height) scv.Panel.Height = pnl.Height Upvote 0
Guenter Becker said: What is going wrong? Click to expand... You need to set the height of the scrollview's inner panel: B4X: scv.Width = mBase.width scv.Panel.AddView(pnl,0,0,pnl.Width,pnl.Height) scv.Panel.Height = pnl.Height
Guenter Becker Active Member Licensed User Nov 3, 2020 #3 Hih Jeffery you did your daily good job! Thank you this works sometings one (in this case me) can be really stupid. Upvote 0
Hih Jeffery you did your daily good job! Thank you this works sometings one (in this case me) can be really stupid.