AHilberink Well-Known Member Licensed User Longtime User Oct 12, 2022 #1 Hi, I am having trouble setting Top and Height using Script of the designer. Top is always lower and Height is higher. Using this in the Activity Create, I can solve the problem: B4X: Copy Activity.LoadLayout("Hoofdscherm") btnEditBon.Height=btnBon.Height btnEditBon.Width=btnEditBon.Height btnEditBon.Left=btnBon.Width-btnEditBon.Width btnEditBon.Top=pnlWeging.top+btnBon.Top Check.top=btnKenteken.top Using the same in the Script I got the issue mentioned. I tried for about one hour to get my button on the right place. Never had this before. I am using 11.80 Can someone help me why this could happen? Is it a damaged .bal file? Thanks, André
Hi, I am having trouble setting Top and Height using Script of the designer. Top is always lower and Height is higher. Using this in the Activity Create, I can solve the problem: B4X: Copy Activity.LoadLayout("Hoofdscherm") btnEditBon.Height=btnBon.Height btnEditBon.Width=btnEditBon.Height btnEditBon.Left=btnBon.Width-btnEditBon.Width btnEditBon.Top=pnlWeging.top+btnBon.Top Check.top=btnKenteken.top Using the same in the Script I got the issue mentioned. I tried for about one hour to get my button on the right place. Never had this before. I am using 11.80 Can someone help me why this could happen? Is it a damaged .bal file? Thanks, André
toby Well-Known Member Licensed User Longtime User Oct 12, 2022 #2 You should provide two images, one showing what you expect and another what you've got so far. Upvote 0
AHilberink Well-Known Member Licensed User Longtime User Nov 1, 2022 #3 After a while I got a solution. It seems something with the .BAL was causing it. Selecting everything and paste it to a new .BAL was solving the problem. Upvote 0
After a while I got a solution. It seems something with the .BAL was causing it. Selecting everything and paste it to a new .BAL was solving the problem.