Change button function dynamically
in
Programming Questions
•
1 year ago
Hi there.
I'm having a row with a couple of buttons. It simulates physical buttons below a display. Above the buttons on the display there is a text saying what the buttons actions are.
Is there a nice way to change the button functions dynamically?
An example of what it could look like if the programming would allow it.
- function currentFunc = rotateMap();
- if (button1.klicked()){
- callFunction(currentFunc);
- }
1