That's easy to understand:
You call ChainCtrlCallback() when the button is pressed for the first time,
so your ButtonXCallback is chained not until the first COMMIT event occurs.
The result is, that the chained callback is called beginning from the second
event.
To solve this, you have to chain all the ButtonXCallbacks at the beginning
of your program (before RunUserInterface()). I have modified your project
with that and now it works fine. See attached archive.
Regards Torsten
"NoVIsonme" schrieb im Newsbeitrag
news:506500000008000000CE310000-1005954886000@exchange.ni.com...
> This is a tiny test program, designed to call one of several callback
> functions when a radio button is pressed. It works exactly as
> advertised, except the fi
rst time a button is pressed, when it doesn't
> respond. When the button is pressed again, off it goes. What's going
> on here?