Kod:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
Gauges, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
Gauge1: TGauge;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.Button1Click(Sender: TObject);
var
X : Integer;
begin
X := Gauge.Progress;
X := X + 10;
Gauge.Progress := X;
end;
end.
wiec jest to kodzik prostego progsu ktory robi imitacje instaliki , ale jest problem ... zeby to 10%przybylo trzeba nacisnac na button ,a jak zrobic by samo sie dodawalo to 10 % np. po 5 sek ???