Autor Beitrag
Leathl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Mo 28.04.03 16:52 
---


Zuletzt bearbeitet von Leathl am Sa 15.08.09 15:50, insgesamt 1-mal bearbeitet
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 28.04.03 17:25 
Du müsstest folgende Variablen erstellen:
ges: Integer;
akt: Integer;
(Ich weiß dass man beide zusammenfassen könnte :lol: )
Dann müsstest du erstmal alle Aktionen, die passieren, zählen und die Zahl in die Variable ges schreiben. Dann musst du nach jeder Aktion akt um 1 erhöhne und den Prozessstatus der Progressbar so setzen:
ausblenden Quelltext
1:
.Progress:=round((akt/ges)*100);					

So sollte es gehen.

Ich gebe zu, die Methode ist nicht sehr elegant, aber sie geht.
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mo 28.04.03 18:34 
wieso machst du dir eigendlich die arbeit mit dem round usw... ???

setz das ges soch als progressbar.max und das andre als position und das ausrechnen macht die dann selber !

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 28.04.03 18:56 
Die Arbeit deswegen, weil ansonsten ein falscher Status angezeigt wird.
Leathl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Mo 28.04.03 20:26 
---


Zuletzt bearbeitet von Leathl am Sa 15.08.09 15:51, insgesamt 1-mal bearbeitet
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Di 29.04.03 12:33 
Dann schick mir mal den Code. Ich bau das für dich ein. Email: Mo@onz24.de
Du musst mir dann halt auch markieren, für welche Prozedur das sein soll und am Besten die Progressbar schon auf die Form pflanzen.
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Di 29.04.03 14:35 
Onz hat folgendes geschrieben:
Die Arbeit deswegen, weil ansonsten ein falscher Status angezeigt wird.


wieso das denn ?? probiers mal aus !

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Di 29.04.03 14:44 
Kann sein dass ich mich täusche :lol:
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Di 29.04.03 14:48 
ja wozu gibt es denn bitte bei der progressbar die max eigenschaft ??

_________________
In the beginning was the word.
And the word was content-type: text/plain.