Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. procedure TForm1.Button1Click(Sender: TObject);
  2. begin
  3. FloatAnimation1.Enabled := True;
  4. FloatAnimation1.StartValue := Form1.Width;
  5. FloatAnimation1.StopValue := 0-Label1.Width;
  6. end;
  7.  
  8.  
  9. object Label1: TLabel
  10. AutoSize = True
  11. Position.X = 240.000000000000000000
  12. Position.Y = 232.000000000000000000
  13. Size.Width = 37.000000000000000000
  14. Size.Height = 16.000000000000000000
  15. Size.PlatformDefault = False
  16. TextSettings.WordWrap = False
  17. Text = 'Label1'
  18. object FloatAnimation1: TFloatAnimation
  19. Duration = 1.000000000000000000
  20. Loop = True
  21. PropertyName = 'Position.X'
  22. StartValue = 0.000000000000000000
  23. StartFromCurrent = True
  24. StopValue = 0.000000000000000000
  25. end
  26. end
  27. object Button1: TButton
  28. Position.X = 248.000000000000000000
  29. Position.Y = 312.000000000000000000
  30. TabOrder = 1
  31. Text = 'Button1'
  32. OnClick = Button1Click
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement