merlin2049er Well-Known Member Licensed User Longtime User Mar 14, 2014 #1 I've got a panel that is 70%x to 100%x in my designer script and one button doesn't want to be centered when I use mybutton.horiztonalcenter = 50%x (it's off the screen). Shouldn't it be centered on that panel?
I've got a panel that is 70%x to 100%x in my designer script and one button doesn't want to be centered when I use mybutton.horiztonalcenter = 50%x (it's off the screen). Shouldn't it be centered on that panel?
HotShoe Well-Known Member Licensed User Longtime User Mar 14, 2014 #2 You might make sure that the button's parent is set to the panel and not to Activity. --- Jem Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Mar 14, 2014 #3 It should be: B4X: mybutton.horiztonalcenter = Panel1.Width / 2 Upvote 0
merlin2049er Well-Known Member Licensed User Longtime User Mar 14, 2014 #4 Ok, I think I tried that. I'll try it again. (Yes, my button's parent is the panel.) Upvote 0