N Nachtfalke75 Member Licensed User Longtime User Aug 16, 2011 #1 Hello, i want to move two buttons into the screen i tried it like this: moveButton(0).InitializeTranslate("Animation",-150dip, Button1.Top, Button1.Left, Button1.Top) Button1.Tag = moveButton(0) moveButton(0).Duration = 800 moveButton(0).RepeatCount = 0 moveButton(0).Start(Button1) The buttons move into the screen but to the wrong position (not like that position in the disigner). What did i do wrong? Can anybody help me? thanks a lot
Hello, i want to move two buttons into the screen i tried it like this: moveButton(0).InitializeTranslate("Animation",-150dip, Button1.Top, Button1.Left, Button1.Top) Button1.Tag = moveButton(0) moveButton(0).Duration = 800 moveButton(0).RepeatCount = 0 moveButton(0).Start(Button1) The buttons move into the screen but to the wrong position (not like that position in the disigner). What did i do wrong? Can anybody help me? thanks a lot
Erel B4X founder Staff member Licensed User Longtime User Aug 17, 2011 #2 All the values are relative to the original position. Try: B4X: moveButton(0).InitializeTranslate("Animation",-150dip,0, 0, 0) Upvote 0
All the values are relative to the original position. Try: B4X: moveButton(0).InitializeTranslate("Animation",-150dip,0, 0, 0)