如何控制ScrollBar,使其按一定的速度向下滚动!高分答谢! 如何控制ScrollBar,使其按一定的速度向下滚动!高分答谢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 窗体上一个按钮,一个Timer,一个ScrollTimer的Interval为500....单元文件代码如下:unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls;type TForm1 = class(TForm) Button3: TButton; ScrollBar1: TScrollBar; Timer1: TTimer; procedure Button3Click(Sender: TObject); procedure Timer1Timer(Sender: TObject); procedure FormCreate(Sender: TObject); private { Private declarations } public { Public declarations } end;var Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button3Click(Sender: TObject);begin Timer1.Enabled :=True;end;procedure TForm1.Timer1Timer(Sender: TObject);begin with ScrollBar1 do begin SetParams(Self.Tag,Min,Max); //也可以直接用Position属性 if Self.Tag<Max then Self.Tag:=Self.Tag+1 else Timer1.Enabled :=False; end;end;procedure TForm1.FormCreate(Sender: TObject);begin Self.Tag:=0; with ScrollBar1 do begin Min:=0; Max:=100; end;end;end. 我现在的ScrollBar是指dbgrid中出现的ScrollBar,如何控制使其按一定速度下滑,谢谢! procedure TForm1.Timer1Timer(Sender: TObject);begin with DBGrid1.DataSource.DataSet do begin if not Eof then Next; end;end; 还是数字处理问题 一个包里面的单元文件如何引用另一个包里的单元件,DELPHI提示要把,包转化成DCP,然后包加入该DCP。 想找一个c/s结构的进销存系统原代码,哪位有啊,帮帮我吧 delphi用于CAD开发的基础方面请教. 高手赋教请问:用delphi7如何修改<<注册表编辑器>>左面树上<<项>>名称。 oer谢谢你的原代码 如何用HTTP协议(或不要经过服务器验证直接发)发电子邮件?最好能有一个例子。 100分急求救:为啥我的表间关联不起来? 求救二维动态数组做参数传递问题!!! 请问代理服务器的的哪个port是打开的? 小问题 源码空间(playicq)的白银会员请进……在线等
Timer的Interval为500....单元文件代码如下:unit Unit1;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls;type
TForm1 = class(TForm)
Button3: TButton;
ScrollBar1: TScrollBar;
Timer1: TTimer;
procedure Button3Click(Sender: TObject);
procedure Timer1Timer(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button3Click(Sender: TObject);
begin
Timer1.Enabled :=True;
end;procedure TForm1.Timer1Timer(Sender: TObject);
begin
with ScrollBar1 do
begin
SetParams(Self.Tag,Min,Max); //也可以直接用Position属性
if Self.Tag<Max then
Self.Tag:=Self.Tag+1
else
Timer1.Enabled :=False;
end;
end;procedure TForm1.FormCreate(Sender: TObject);
begin
Self.Tag:=0;
with ScrollBar1 do
begin
Min:=0;
Max:=100;
end;
end;end.
begin
with DBGrid1.DataSource.DataSet do
begin
if not Eof then
Next;
end;
end;