全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:1234
推到 Plurk!
推到 Facebook!

如何反复循环?

答題得分者是:pceyes
BIG-ROM
初階會員


發表:94
回覆:91
積分:37
註冊:2005-04-16

發送簡訊給我
#1 引用回覆 回覆 發表時間:2008-03-13 23:10:36 IP:219.130.xxx.xxx 未訂閱
procedure TForm1.Timer1Timer(Sender: TObject);
begin
LABEL1.Left:=LABEL1.Left 25;
//(如何让这LABEL循环显示?)
end;
P.D.
版主


發表:603
回覆:4038
積分:3874
註冊:2006-10-31

發送簡訊給我
#2 引用回覆 回覆 發表時間:2008-03-14 01:48:30 IP:61.67.xxx.xxx 未訂閱
請說明白?
BIG-ROM
初階會員


發表:94
回覆:91
積分:37
註冊:2005-04-16

發送簡訊給我
#3 引用回覆 回覆 發表時間:2008-03-14 08:34:32 IP:219.130.xxx.xxx 未訂閱

使用Timer1元件 如何无限次让LABEL由左到右反复移动?
类似电视字幕效果??
===================引 用 P.D. 文 章===================
請說明白?
jow
尊榮會員


發表:66
回覆:751
積分:1253
註冊:2002-03-13

發送簡訊給我
#4 引用回覆 回覆 發表時間:2008-03-14 09:25:36 IP:210.66.xxx.xxx 訂閱
跑馬燈??
[code delphi]
procedure TForm1.Timer1Timer(Sender: TObject);
begin
Label1.Left := (Label1.Left 5 250) mod 250;
end;
[/code]
BIG-ROM
初階會員


發表:94
回覆:91
積分:37
註冊:2005-04-16

發送簡訊給我
#5 引用回覆 回覆 發表時間:2008-03-14 11:18:01 IP:219.130.xxx.xxx 未訂閱
感谢热心帮助!

在Label内容长时,显示效果不理想,另外,字幕抖动严重,能否象流水般的顺畅移动字幕?

===================引 用 jow 文 章===================
跑馬燈??
[code delphi]
procedure TForm1.Timer1Timer(Sender: TObject);
begin
Label1.Left := (Label1.Left 5 250) mod 250;
end;
[/code]
jow
尊榮會員


發表:66
回覆:751
積分:1253
註冊:2002-03-13

發送簡訊給我
#6 引用回覆 回覆 發表時間:2008-03-14 11:46:47 IP:210.66.xxx.xxx 訂閱
你可以找 Third-Party 元件, 用TLMDScrollText 或 
TMarguee 作鍵值去google搜尋看看,

若想自行開發, 嗯, 用Marquee bitblt 作搜尋鍵值吧,
應該可以找到許多資料的...
pceyes
尊榮會員


發表:70
回覆:657
積分:1140
註冊:2003-03-13

發送簡訊給我
#7 引用回覆 回覆 發表時間:2008-03-14 16:23:57 IP:220.141.xxx.xxx 訂閱
http://www.torry.net/pages.php?id=160
TScrollTxt v.1.0FWS7 k14 Oct 1996
By Darryl West. Allows lines of text to be scrolled horizontally or vertically. It facilitates, amoung other things, the text display features to be changed, such as alignment, font and style (lowered, raised, shaddow or normal). Fully functional Source: Included
Download: D1 D2
------
努力會更接近成功
系統時間:2024-05-06 6:47:22
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!