left:=-groupox.width
然后用个计时器依次给left增加就行了

解决方案 »

  1.   

    初始化:
       groupbox.left:=-groupbox.width;定时器:  if groupbox.left<=0 then
         groupbox.left:=groupbox.left-10;
      if groupbox.left>0 then
         groupbox.left:=-groupbox.width;按钮:
        timer1.enable:=true;
      

  2.   

    定义一个timer控件和groupbox控件groupbox控件的width属性为0
    设置interval属性来控制groupbox的动画速度
    然后在TIMER的ontimer事件里
    groupbox.width:=groupbox.width+1;
    在按钮的click事件里
    timer控件的enable:=true试试应该可以
      

  3.   

    抖动是吧?你把groupbox放在一个panel里面,
    然后令panel1.left:=-panel1.width,再慢慢增加left值
    怎么样不抖了吧
      

  4.   

    不可能吧~~我刚刚试了一下~没有抖动啊~~你的interval属性是多少?