You said that "there is no way to pick specific functions to generate", but there is, from the UIR editor window.
1. In the UIR editor window, from the Code menu, Set Target File. You can pick an existing file or select (which you can name and save later).
2. Double click on the UIR control for which you need to generate code. Enter the Callback Function name and click OK.
3. Right-click on the control and select Generate Contol Callback.
Here's a few ideas for the rest of your problem.
1. In your UIR editor window, right-click on a control you're having trouble with and select View Control Callback. Verify that the function selected is the one you intend to call.
2. Look closely at how you're using the global variable. Make sure that in your c
allback you're not declaring a local variable with the same name as the global. The way C scopes variables, you can reuse the name of a global variable as a local in a function. When that function returns, the local variable is released and the global is not changed.
3. When you're dealing with separate C files, make sure that the global is declared in a .h file that both .c files have #included and not that each .c files declares it as global to itself.
4. Put a breakpoint in your callback, run the program and operate the control for the callback. Single step through the callback, seeing what code is executed and what the value of the variable is.