哈哈 个位好!
我好久没上DFW了真的很想你们呀
所以我就又来了 8-)
我叫:Eroswar
DFW的昵称叫:qbtxx
如上的问题嘛!小问题了
在窗体中放上一个Image1控件调整好长度和大小在加入如下源代码
请看我给你们如下的源代码 8-)
有颜色的字母在向上翻滚
我 想 给 点 奖 励 分 吧 ! 呵呵 8-)
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls;
type
TForm1 = class(TForm)
Image1: TImage;
Timer1: TTimer;
procedure Timer1Timer(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
x,tt:integer;
implementation
{$R *.dfm}
procedure TForm1.Timer1Timer(Sender: TObject);
begin
x:=x-1;
tt:=tt-1;
if x<-176 then
x:=image1.height+10;
tt:=x+10;
image1.Canvas.font.size:=16;
image1.Canvas.Font.Style:=[fsItalic];
image1.Canvas.Font.Color:=$00c080ff;
image1.Canvas.TextOut(10,x,'你');
image1.Canvas.Font.Color:=$00ff0080;
image1.Canvas.TextOut(10,x+20,'好');
image1.Canvas.Font.Color:=$00408080;
image1.Canvas.TextOut(10,x+40,'呀');
image1.Canvas.Font.Color:=$008080ff;
image1.Canvas.TextOut(10,x+60,'可');
image1.Canvas.Font.Color:=$00408000;
image1.Canvas.TextOut(10,x+80,'爱');
image1.Canvas.Font.Color:=$00400080;
image1.Canvas.TextOut(10,x+100,'的');
image1.Canvas.Font.Color:=$004080ff;
image1.Canvas.TextOut(10,x+120,'妹');
image1.Canvas.Font.Color:=$00c08000;
image1.Canvas.TextOut(10,x+140,'妹');
image1.Canvas.Font.Color:=ClPurple;
image1.Canvas.TextOut(10,x+160,'!');
end;
//image2.Canvas.font.size:=16;
//image2.Canvas.Font.Style:=[fsBold];
//image2.Canvas.Font.Color:=$00c080ff;
//image2.Canvas.TextOut(10,k,'哥');
//image2.Canvas.Font.Color:=$00ff0080;
//image2.Canvas.TextOut(10,k+20,'哥');
//image2.Canvas.Font.Color:=$00408080;
//image2.Canvas.TextOut(10,k+40,'您');
//image2.Canvas.Font.Color:=$008080ff;
//image2.Canvas.TextOut(10,k+60,'好');
//image2.Canvas.Font.Color:=$00408000;
//image2.Canvas.TextOut(10,k+80,'!');
//image2.Canvas.Font.Color:=$00400080;
//image2.Canvas.TextOut(10,k+100,'这');
//image2.Canvas.Font.Color:=$004080ff;
//image2.Canvas.TextOut(10,k+120,'位');
//image2.Canvas.Font.Color:=$00c08000;
//image2.Canvas.TextOut(10,k+140,'妹');
//image2.Canvas.Font.Color:=ClPurple;
//image2.Canvas.TextOut(10,k+160,'妹');
//image2.Canvas.Font.Color:=Clblue;
//image2.Canvas.TextOut(10,k+180,'漂');
//image2.Canvas.Font.Color:=ClSKyBlue;
//image2.Canvas.TextOut(10,k+200,'亮');
//image2.Canvas.Font.Color:=ClOlive;
//image2.Canvas.TextOut(10,k+220,'吗');
//image2.Canvas.Font.Color:=ClRed;
//image2.Canvas.TextOut(10,k+240,'?');
procedure TForm1.FormCreate(Sender: TObject);
begin
timer1.enabled:=true;
timer1.Interval:=10;
x:=image1.height+10;
tt:=x+10;
end;
end.