Autor Beitrag
delphinap
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 42



BeitragVerfasst: Do 09.12.04 14:50 
hey,
wie kan ich überprüfen, ob ein Spinedit einen höhren bzw. niedrigeren Wert bekommen hat ?
thx
DN


Moderiert von user profile iconKlabautermann: Topic aus Sonstiges verschoben am Do 09.12.2004 um 16:17
mirage228
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 338

Win 7 Prof.
Delphi 2005 Prof., Delphi 2010 Prof.
BeitragVerfasst: Do 09.12.04 16:07 
Ich nehme mal es wird das Ereignis OnChanged (oder Ähnlich) ausgelöst, falls der Wert geändert wurde. :)

mfG
mirage228

_________________
May the source be with you, stranger.
delphinap Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 42



BeitragVerfasst: Fr 10.12.04 17:28 
und woher weiß ich dann obs hoch oder runter gezähöt wurde ?
mirage228
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 338

Win 7 Prof.
Delphi 2005 Prof., Delphi 2010 Prof.
BeitragVerfasst: Fr 10.12.04 17:43 
Hi,

das fällt mir so kein Weg ein :-(

Wenn es Dir möglich ist, könntest Du auf ein TEdit + TUpDown umsteigen und dann auf das OnChangingEx des TUpDowns reagieren (nachdem Du es mit dem TEdit assoziiert hast (Associate Eigenschaft))

mfG
mirage228

_________________
May the source be with you, stranger.
Basti
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 345

Windows Vista
D2005 Pers, D7 Pers
BeitragVerfasst: Fr 10.12.04 17:44 
Speicher den Wert des Spins am Anfang in der globalen Variable "alt".
Beim OnChange liest du denn aktuellen Wert in die lokale Variable "aktuell".
Danach vergleichst du die beiden Variablen und du weisst, wie stark
sich der Wert geändert hat.
Beim OnChange musst du dann aber alt wieder auf aktuell setzen,
damit beim nächsten Durchlauf alles klappt.

_________________
Der Computer ist die logische Weiterentwicklung des Menschen: Intelligenz ohne Moral.
delphinap Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 42



BeitragVerfasst: Fr 10.12.04 17:47 
hmm dann müsst ich
19 editfelder + neunzehn spinbuttons machen >_<

edit: hm hätte vorher aktualisieren sollen...sry..werde ergebnisse hier rein editieren wenns klappt
delphinap Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 42



BeitragVerfasst: Sa 11.12.04 13:43 
ok hab noch n prob ^^
undzwar wenn ich in dem onchange event den wert von dem spinedit neu setze wird das on change event nochmal ausgelöst und ich wüsste gern wie ich das verhindern kann
thx
DN
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Sa 11.12.04 13:52 
Das geht z.b. so:
ausblenden Delphi-Quelltext
1:
2:
3:
MySpinEdit.onchange:=NIL;
MySpinEdit.value:=42;
MySpinEdit.onchange:=MySpinEditChange(Sender);

_________________
We are, we were and will not be.
delphinap Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 42



BeitragVerfasst: Sa 11.12.04 17:03 
ausblenden Quelltext
1:
SEHaus.onchange:=SEhausChange(Sender); <--- da kommt der fehler [Error] Unit1.pas(189): Incompatible types: 'TNotifyEvent' and 'procedure, untyped pointer or untyped parameter'					


dann bkeomm ich diesen fehler
Robert.Wachtel
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 895
Erhaltene Danke: 7

Windows 7 Ultimate x64
D5 Ent, D7 Arch, RAD Studio 2010 Pro, VS 2008
BeitragVerfasst: Sa 11.12.04 18:12 
Lass mal das (Sender) weg.
delphinap Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 42



BeitragVerfasst: Sa 11.12.04 22:45 
ok danke es klappt !! sollte ich noch probs haben melde ich mich :D