A Azhar Active Member Licensed User Longtime User Aug 13, 2020 #1 Hi All, In my designer script I have this line which works very well for one layout: B4X: Copy ScrollView1.SetTopAndBottom(lblTitle.Bottom+10dip,pnlForCPBar.Top-10dip) But in my application, at some stage, I need the scrollview control to increase in size (height) and have its 'bottom' to the 'top-10dip' of another label control beneath it after I make the pnlForCPBar.Visible=False. I basically want to re-capture the void space. Does anyone know how I can do this within the code? I don't really want to use the scrollview.height property as I cannot be sure if its changed height will overlap the same label control beneath it. Thanks
Hi All, In my designer script I have this line which works very well for one layout: B4X: Copy ScrollView1.SetTopAndBottom(lblTitle.Bottom+10dip,pnlForCPBar.Top-10dip) But in my application, at some stage, I need the scrollview control to increase in size (height) and have its 'bottom' to the 'top-10dip' of another label control beneath it after I make the pnlForCPBar.Visible=False. I basically want to re-capture the void space. Does anyone know how I can do this within the code? I don't really want to use the scrollview.height property as I cannot be sure if its changed height will overlap the same label control beneath it. Thanks
Erel B4X founder Staff member Licensed User Longtime User Aug 13, 2020 #2 Note that you don't need such script. You can use anchors. However it will not help with the runtime change. You will need to make the change in the code. Upvote 0
Note that you don't need such script. You can use anchors. However it will not help with the runtime change. You will need to make the change in the code.