![]() |
TGauge - Wie?
Ich weiss das es vielleicht nervt, aber ist ja nur eine kleine Frage :mrgreen:
Code:
Also, die Gauge soll den Prozentwert darstellen, TimerKompo ist auf Interval 50 und enabled.
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; |
Re: TGauge - Wie?
Hat sich erledigt... :cyclops:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 06:22 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz