Bug? designer not running correctly?

icefairy333

Active Member
Licensed User
Longtime User
1.png
2.png
 

icefairy333

Active Member
Licensed User
Longtime User
3.png
4.png

B4X:
'All variants script
AutoScaleAll
ndiv=1.5dip
w=(100%x-ndiv*3)/4
lbljiaoling.Width=w
lblhaopin.Left=lbljiaoling.Right+ndiv
lblhaopin.Width=w
lblkeshi.Width=w
lblkeshi.Left=lblhaopin.Right+ndiv
lblxuesheng.Width=w
lblxuesheng.Left=lblkeshi.Right+ndiv
Label1.SetLeftAndRight(lbljiaoling.Left,lbljiaoling.Right)
Label2.SetLeftAndRight(lblhaopin.Left,lblhaopin.Right)
Label3.SetLeftAndRight(lblkeshi.Left,lblkeshi.Right)
Label4.SetLeftAndRight(lblxuesheng.Left,lblxuesheng.Right)
 

ilan

Expert
Licensed User
Longtime User
try it like this:

B4X:
ndiv=1.5dip
w=(100%x-ndiv*3)/4
lbljiaoling.Width=w
lblhaopin.Width=w
lblkeshi.Width=w
lblxuesheng.Width=w
lblhaopin.Left=lbljiaoling.Right+ndiv
lblkeshi.Left=lblhaopin.Right+ndiv
lblxuesheng.Left=lblkeshi.Right+ndiv
Label1.SetLeftAndRight(lbljiaoling.Left,lbljiaoling.Right)
Label2.SetLeftAndRight(lblhaopin.Left,lblhaopin.Right)
Label3.SetLeftAndRight(lblkeshi.Left,lblkeshi.Right)
Label4.SetLeftAndRight(lblxuesheng.Left,lblxuesheng.Right)
 
Top