Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi TGauge - Wie? (https://www.delphipraxis.net/24772-tgauge-wie.html)

sui 25. Jun 2004 22:39


TGauge - Wie?
 
Ich weiss das es vielleicht nervt, aber ist ja nur eine kleine Frage :mrgreen:

Code:
procedure TForm1.Timer1Timer(Sender: TObject);

    var
  platz: int64;
  prozent: string;
  partition: Int64;
  total:  Int64;

begin
  partition := DiskFree(4);
  total := DiskSize(4);

  prozent := IntToStr
  (100 * partition div total) + 'Prozent frei: ';
  label1.caption := prozent;

  platz := partition div 1024 div 1024 div 1024;
  Label2.Caption := inttostr (platz) + ' Gbytes frei. ';

  if prozent < inttostr(30) then label3.Caption := 'Platte aufräumen';
  gauge1.progress := round (prozent);
  end;
Also, die Gauge soll den Prozentwert darstellen, TimerKompo ist auf Interval 50 und enabled.

sui 25. Jun 2004 23:04

Re: TGauge - Wie?
 
Hat sich erledigt... :cyclops:


Alle Zeitangaben in WEZ +1. Es ist jetzt 03:26 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz