Mikelgiles Active Member Licensed User Longtime User Sep 24, 2019 #1 I would like to be able to set the width and height of a B4XTable ( and maybe the Left and Top position ) in code based on the form size as the user changes the size. Is there a way to do this?
I would like to be able to set the width and height of a B4XTable ( and maybe the Left and Top position ) in code based on the form size as the user changes the size. Is there a way to do this?
EnriqueGonzalez Expert Licensed User Longtime User Sep 25, 2019 #2 Code: Copy b4XTable.mBase.SetLayoutAnimated(0,10,10,10,10) Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Sep 25, 2019 #3 Why don't you change it with anchors or designer script? That is the correct way to do it. Upvote 0
Mikelgiles Active Member Licensed User Longtime User Sep 25, 2019 #4 Thank you Erel! Setting the left-rt anchor and the up-dn anchor worked perfect for what I needed and NO CODE TO WRITE! I had assumed that anchors only took care of the top and left positions. Assumptions seem to always get me in trouble. Upvote 0
Thank you Erel! Setting the left-rt anchor and the up-dn anchor worked perfect for what I needed and NO CODE TO WRITE! I had assumed that anchors only took care of the top and left positions. Assumptions seem to always get me in trouble.