Einzelnen Beitrag anzeigen

Benutzerbild von Jelly
Jelly

Registriert seit: 11. Apr 2003
Ort: Moestroff (Luxemburg)
3.741 Beiträge
 
Delphi 2007 Professional
 
#13

Re: Suche Progressbar mit Min,Max vom Typ Double

  Alt 11. Sep 2004, 09:38
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 ;
  Mit Zitat antworten Zitat