10-30-2012 08:49 AM
Hello,
I would like to know how I can discard a control button.
My application generates an alternative voltage when I select a button(button OK). This voltage is generated during 2 hours.
I've created a second button (STOP) to stop generating this voltage. Unfortunately I can't select this button when my code is executing. (it's dimmed)
In fact, I just want to code an interruption i my programe but I don't know how to do ...
Please help me 😃
Best regards
Julien
10-30-2012 08:57 AM - edited 10-30-2012 09:12 AM
Hello Julien,
This is one of the most frequent questions concerning the UI of CVI - but fortunately is easy to resolve... Use ProcessSystemEvents () (after reading the help, of course) to allow for processing user events. You might also need to use the function SetCtrlAttribute (panel_handle, control_id, ATTR_DIMMED, ..) to dim/undim your control.