Hello Guys
So lately i came to a point where i did a more complicated calculation.
I want my Programm to react to changes, did on the Form.
So the User has some Stuff on my Form he can choose then he clicks "Calculate" and the Results are returned. After that i changed my Button Color to green (yellow = not calculated / green = calculated). So now what i want to have is some Event or something else wich checks if the user changes something again, then the calculation is not valid anymore. So if the User doeas some changes then an Event should do some stuff.
Pseudo Code Example:
Function ClickCalculate
If calculation did go well
Button --> green
else
Yellow
Function Event
If change some component wich has impact on calculation
Button again yellow (or just some signal to the user that the calculatoion is not valid anymore)
thanks in advance
Edit: It does not have to be an event .. just searching for a good solution.
i got a solution (but just not a very clean 1):
I hide somewhere a TEdit an use its OnChange event so i just change the caption from 0 = not calculated to 1 = calculated and the Event gets triggered