6.接著在SpeedButton 的 forbidden事件
var
FloatAnimationX:
single
;
begin
FloatAnimationX:=Self
.
ClientWidth -
60
;
if
(panel1
.
Position
.
X=FloatAnimationX)
then
begin
FloatAnimation1
.
StartValue:= FloatAnimationX;
FloatAnimation1
.
StopValue:=
0
;
end
else
begin
FloatAnimation1
.
StartValue:=
0
;
FloatAnimation1
.
StopValue:= FloatAnimationX;
end
;
AnimateDrawer
.
Start;
end
;
如果你要在Panel加上阴影的話,只要在Panel加上ShadowEffect即可
Copyright © 2014 DelphiW.com 开发 源码 文档 技巧 All Rights Reserved
晋ICP备14006235号-8 晋公网安备 14108102000087号
执行时间: 0.065442085266113 seconds