如何在状态栏中实现跑马灯效果 如何在状态栏中实现跑马灯效果,是左可移动的那一种,请各位高手帮忙.多谢谢了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 很难吗?s: string;s := 'How are you';for i:=1 to length(s) dobegin statusbar1.panels[0].text := copy( s, i, length(s)-i+1 ); end; 奥,实际应用中要使用Timer才行var TextIndex:integer; TextContent : string;TextContent := 'How are you!'; OnTimer事件中: Inc(TextIndex) ; if TextIndex > Length(TextContent) then TextIndex := 1; statusbar1.panels[0].text := copy( TextContent, TextIndex, length(TextContent)-TextIndex+1 ); s: string;s := 'How are you';for i:=1 to length(s) dobegin statusbar1.panels[0].text := copy( s, i, length(s)-i+1 ); end;这个结果只有一个 U 字母 flyinwuhan(制怒·三思而后行),这样还不行,效果也是一起出来的,不是一个一个出来的,谢谢你,能不能再帮忙一下? http://soft.56kc.com/Filedown.aspx?FID=64 用Timer才行, 间隔设为55/110/220/440 flyinwuhan(制怒·三思而后行) ,用Timer才行, 间隔设为55/110/220/440,这如何办?能否加入为QQ好友? 我的QQ为:99331590 unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls;type TForm1 = class(TForm) Timer1: TTimer; procedure Timer1Timer(Sender: TObject); procedure FormCreate(Sender: TObject); private { Private declarations } public { Public declarations } end;var Form1: TForm1; TextIndex: integer; TextContent: string;implementation{$R *.dfm}procedure TForm1.Timer1Timer(Sender: TObject);begin Inc(TextIndex) ; if TextIndex > Length(TextContent) then TextIndex := 1; Caption := copy( TextContent, TextIndex, length(TextContent)-TextIndex+1 );end;procedure TForm1.FormCreate(Sender: TObject);begin TextContent := 'How are you!';end;end.DFM :object Form1: TForm1 Left = 192 Top = 107 Width = 544 Height = 375 Caption = 'Form1' Color = clBtnFace Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -11 Font.Name = 'MS Sans Serif' Font.Style = [] OldCreateOrder = False OnCreate = FormCreate PixelsPerInch = 96 TextHeight = 13 object Timer1: TTimer Interval = 220 OnTimer = Timer1Timer Left = 256 Top = 176 endend 谢谢flyinwuhan(制怒·三思而后行 active desktop(活动桌面)在线等待 高手看看这段汇编有什么问题,如何改正 帮我看下这句SQL语句为什么不对. 救命啊!关于1stClass控的问题,急待解决! 请问怎样在ReportBuilder打印报表控件中控制打印新的一页? 大家看看一个远程关机程序 受不了啦!上CSDN老是出现运行期错误提示框,不知怎样解决? 39到了我们该学习xml和.net的时候了吗? 构建了procedure过程,运行时出现“无效字符”错误提示? 大富翁如何进不去了? indy servers接收IP端口问题 如何实现 字符串查找问题!
begin
statusbar1.panels[0].text := copy( s, i, length(s)-i+1 );
end;
TextIndex:integer;
TextContent : string;TextContent := 'How are you!';
OnTimer事件中:
Inc(TextIndex) ;
if TextIndex > Length(TextContent) then
TextIndex := 1;
statusbar1.panels[0].text := copy( TextContent, TextIndex, length(TextContent)-TextIndex+1 );
begin
statusbar1.panels[0].text := copy( s, i, length(s)-i+1 );
end;
这个结果只有一个 U 字母
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls;type
TForm1 = class(TForm)
Timer1: TTimer;
procedure Timer1Timer(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;
TextIndex: integer;
TextContent: string;implementation{$R *.dfm}procedure TForm1.Timer1Timer(Sender: TObject);
begin
Inc(TextIndex) ;
if TextIndex > Length(TextContent) then
TextIndex := 1;
Caption := copy( TextContent, TextIndex, length(TextContent)-TextIndex+1 );end;procedure TForm1.FormCreate(Sender: TObject);
begin
TextContent := 'How are you!';
end;end.DFM :object Form1: TForm1
Left = 192
Top = 107
Width = 544
Height = 375
Caption = 'Form1'
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = False
OnCreate = FormCreate
PixelsPerInch = 96
TextHeight = 13
object Timer1: TTimer
Interval = 220
OnTimer = Timer1Timer
Left = 256
Top = 176
end
end