11-09-2016 06:03 AM
Hi,
I'm writing a calculator UI.
I want to create a CallBack function so every control on the calculator panel will operate it.
Once the program enters the function will be a switch - case condition for every button.
How can I do it without creating a separate function for each control?
Thanks,
Eliran
11-09-2016 07:06 AM
...you can specify the callback function in the UI editor yourself
01-22-2017 07:38 AM
Once your application is compiled and run it loads these functions into memory.
With a callback you are actually giving the OS/Driver a pointer to where the function resides in memory, it will then, when the callback is fired, load this function, execute the code and return it into memory.
With this in mind, there should be no reason you cannot use the same function for multiple callbacks, have you found an issue when doing so?