Android Question Trouble using Script in Designer [SOLVED]

AHilberink

Active Member
Licensed User
Longtime User
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:
    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
You should provide two images, one showing what you expect and another what you've got so far.
 
Upvote 0

AHilberink

Active Member
Licensed User
Longtime User
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
Top