做了一个login界面,想用来回滚动字符,但怎么想也不能来回滚动.现在的代码只能向右边滚动,代码如下:
with Label3 do begin
left:=left+10;
if left>=panel2.Width-width
then left:=-width;
end;那位大侠帮忙改一下,能够使label的字符,先在这谢谢了.
with Label3 do begin
left:=left+10;
if left>=panel2.Width-width
then left:=-width;
end;那位大侠帮忙改一下,能够使label的字符,先在这谢谢了.
解决方案 »
- ActiveX多线程,浏览器并发访问,致未执行完成的程序,暂停执行!特急!!!!急!!!
- 菜鸟请教关于显示数据问题
- access中如何实现字段的默认值是一个常数+一个按规则增大的数?
- Indy UDP接收事件的问题
- 300分!300分!!300分!!!求解:程序自己建立拨号网络的若干问题!!!!!!!!
- RICHEDIT问题!!
- 这句Sql怎么在Access中出错(在Sql-server中是对的)
- 如何用sql语句统计满足条件的记录数?
- 报表部题(自定义纸张大小)
- 我在使用DELPHI数据库时错误!
- 请问怎样得到一个控件最顶层的Parent(就是TForm)?
- 有delphi开发的OA产品不?
var
iDir : Integer;procedure TForm1.FormCreate(Sender: TObject);
begin
iDir := 10;
end;procedure TForm1.Timer1Timer(Sender: TObject);
begin
with Label1 do
begin
Left := Left + iDir;
if (Left >= Panel1.Width - Width - Abs(iDir)) or (Left <= Abs(iDir)) then iDir := -iDir;
end;
end;