Autor Beitrag
schermerbua
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 63

Win XP

BeitragVerfasst: So 05.06.05 10:58 
gibts eine komponente, die ähnlich wie progressbar bzw Gauge ist, die aber mit kommawerten arbeiten kann?
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: So 05.06.05 11:20 
Moin!

Wo ist das Problem: skalier den Float-Wert und runde ihn auf einen Integer... :wink:

cu
Narses
schermerbua Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 63

Win XP

BeitragVerfasst: So 05.06.05 18:45 
ich versteh nicht was du meinst!
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: So 05.06.05 19:55 
Moin!

Du kannst doch den Kommawert in einen Nicht-Kommawert umrechnen. :wink:

cu
Narses
schermerbua Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 63

Win XP

BeitragVerfasst: So 05.06.05 21:16 
jo sicher, aber dann wird ja die kommastelle weggeschnitten und dann wird aus 0.9 einfach 0. Und ich will dass wenn die zahl 0.9 ist, die progressbar um 0.9 prozent weiter geht!
Taladan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 88


Delphi 2005 Personal
BeitragVerfasst: So 05.06.05 21:24 
Stell deine bar auf 1000 Schritt ein (Also Promille). Dann schreib einfach Prozedur, die eben deine 0.9 Prozent drauf zählt. Wobei es irgendwo keienn sinn mehr machen wird, irgenwelche Potzenzen jenseits der 1000 also z.b. 1000000 Schritte zu nutzen. Denn Sichtbar ist es für den Anwender nicht.
OneOfTen
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 05.06.05 21:25 
user profile iconschermerbua hat folgendes geschrieben:
jo sicher, aber dann wird ja die kommastelle weggeschnitten und dann wird aus 0.9 einfach 0. Und ich will dass wenn die zahl 0.9 ist, die progressbar um 0.9 prozent weiter geht!


narses meint du solltest deinen wertebereich in Prozent umrechnen