Autor Beitrag
Noctis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Do 23.10.08 09:17 
Moin,

ist es möglich bei der TUpDown Komponente eine Schrittweite einzustellen?
Wollte bei 0.10 anfangen und dann in 0.01 Schritten vorwärts/abwärts also: 0.11; 0.12 [...].

mfg
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Do 23.10.08 10:18 
Hier ein kleiner Denkanstoß:
Im Moment wird der Wert mit jedem Klick um X erhöht. Nun schaue man sich alle Eigenschaften von UpDown an, und suche, wo der Wert X eingetragen ist.
und schon findet man: ... (Setze hier die Eigenschaft ein)

Da der Zahlenwert aber ein Integer ist, und kein Float, wird dein Vorhaben schwierig.

_________________
PROGRAMMER: A device for converting coffee into software.
gfehmke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 24



BeitragVerfasst: Do 23.10.08 11:37 
Hi

Soo schwierig wohl nicht:

Im Objectmanager setzen:
Minimum 0
Maximum 100 ( oder was auch immer gewünscht )
Position 10

Anzeige per:
Label1.caption:=floattostr(updown1.position/100);
beim Erzeugen bzw Änderung
den entsprechenden Wert ggF. benutzen

G.
Noctis Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Do 23.10.08 11:50 
danke für die lösung, klappt wunderbar ;)