![]() |
Ereignisse
Also wenn ich zb 2 Edit Bosen hab und darunter ein Label wo das Ergebnis stehen soll, welches Ereignis ist es wenn es automatisch immer aktualisiert wird, wenn ein Wert einer der Boxen sich ändert? Sodass man zb keine Button drücken muss.
MfG |
Re: Ereignisse
Probiers mit TEdit.OnChange.
|
Re: Ereignisse
|
Re: Ereignisse
Zitat:
Wie würde des zb. hier bei aussehen:
Delphi-Quellcode:
begin
prodiri := strtofloat(edit1.Text); prodhol := strtofloat(edit4.text); prodo2 := strtofloat(edit5.text); bbt := strtofloat(edit2.text); wk := strtofloat(edit3.text); iri := prodiri * (Power(1 + 5/100, bbt)); hol := prodhol * (Power(1 + 5/100, bbt)); o2 := prodo2 * (Power(1 + 5/100,wk)); iri2 := iri + (iri/100*55); hol2 := hol + (hol/100*55); o22 := o2 + (o2/100*55); label1.Caption := floattostr(iri2); label2.Caption := floattostr(hol2); label4.Caption := floattostr(o22); end; |
Re: Ereignisse
Zitat:
Zitat:
|
Re: Ereignisse
Du musst den Code zur Berechnung ins OnChange Event des Edits reinschreiben.
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:52 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz