Delphi-PRAXiS
Seite 2 von 2     12   

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 Suche Progressbar mit Min,Max vom Typ Double (https://www.delphipraxis.net/29555-suche-progressbar-mit-min-max-vom-typ-double.html)

Sharky 11. Sep 2004 02:28

Re: Suche Progressbar mit Min,Max vom Typ Double
 
Zitat:

Zitat von Luckie
Könntest du so langen Code bitte in [delphi ]-Tags fassen, dann kann man ihn auch lesen.

Noch besser wäre den Code (bei dieser Länge) als Datei anzuhängen ;-)

Luckie 11. Sep 2004 03:52

Re: Suche Progressbar mit Min,Max vom Typ Double
 
Wir haben doch Code-Folding. :zwinker:

Jelly 11. Sep 2004 09:38

Re: Suche Progressbar mit Min,Max vom Typ Double
 
Wieso min und max anpassen. Ich belasse stattdessen immer min=0 und max=100. Im OnProgress Ereignis passe ich dann meine Postion an... etwa so.

Delphi-Quellcode:
const
 MinFloat = 5.17 ;
MaxFloat = 18.15
begin
  progressbar.position := round (AktuellFloat-MinFloat / (MaxFloat-MinFloat)) ;
end ;


Alle Zeitangaben in WEZ +1. Es ist jetzt 00:08 Uhr.
Seite 2 von 2     12   

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