09-03-2008 04:40 AM
Hi
Lets say iv got a control on my front panel which i want to prevent the user from changing its value while some kind of process is running.
more then that. If that process is running and he tries to change the value i want to ask him if he is sure, and to change or not accordingly,
without asking him again what to. That is: change to what i originally prevented him from changing to.
how can it be done by using an event?
thanks in advance
shai
09-03-2008 04:44 AM
Hi shai,
to prevent changing you can disable the control. if you want to react in the change, use the value change event. The running process will be in a parallel process, so i think it´s no problem if the value will change for a short time. You can open a dialog in the change event. Store the value in a shift register. if you don´t want the changed value you can overwrite it with the old one from the shiftregister.
Hope it helps.
Mike
09-03-2008 05:29 AM
Agree but...
You don't need a shift register. The old value is an event output (at the left)
09-03-2008 08:39 AM