在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
步骤如下: 更多属性就不多说了,代码例子如下(在此选择的用Button控件(按钮)驱动): unit a; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, ComCtrls; type TForm1 = class(TForm) Button1: TButton; ProgressBar1: TProgressBar; procedure Button1Click(Sender: TObject); procedure ProgressBar1ContextPopup(Sender: TObject; MousePos: TPoint;var Handled: Boolean); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.Button1Click(Sender: TObject); begin ProgressBar1.Max:=100;//将进度条长度设为100 ProgressBar1.Position:=ProgressBar1.Position+1;//每次增加%1 end; end. 如上,一个简单的进度条程序完成了,实现不难,大部分(如定义)都是Delphi7帮你完成的。 |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论