LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Ring controls Text boxes Anyone?

I have a ring control that when selected and run generates text into the text box, but when i select a new option in ring control the text box doesn't clear itself automatically. The text box clears after I hit the run button .

Here is what it uses to clear when i select a new selection in ring control and hit run button

ResetTextBox (PnHdl [ CONNECT ], CONNECT_TEXT, "\0");

Can I make this text box clear itself of the contents when I make a new selection from the ring control instead do I have to wait till the run button is hit.

Thanks a bunch in advance.
0 Kudos
Message 1 of 3
(3,049 Views)
The ring control will receive an EVENT_VAL_CHANGED event followed by a EVENT_COMMIT event whenever a user changes its value. Simply install a callback function for the ring and on one of these events, clear the text box.

Hope this helps.

Regards,

Alex
0 Kudos
Message 2 of 3
(3,043 Views)
Thanks man, worked just fine. I guess I didn't know where to reset the box.
0 Kudos
Message 3 of 3
(3,039 Views)