I am using roSpringboardScreen and want to update the text of one of the buttons when clicked. Hypothetically let's say I want the button text to show a number/counter that increases with every press - or an "on"/"off" alternate text. How can i do that?
Here is how my flea of thought has been hopping so far:
Maybe i can update it? No, there is no UpdateButton() method.
Maybe AddButton() with the same id# will update the text? No, it adds new button at the end
Maybe i'll just .ClearButtons() and then .AddButton() them again. And that almost worked - "almost" because after such acrobatics the current button loses the focus (naturally, the selection gets reset to the first button).
To address C, maybe i can manually set the focus? No, no method SetFocusedMenuItem() here.
Ok, so i am open minded - maybe i have to use roMessageDialog instead, which seems the only one with UpdateButton() or SetFocusedMenuItem(). Alas, this one does not seem to have a way to add an image - AddGraphic() or alike.
So, how can i do that? I want
a button that can change its text when pressed and does not lose focus because of that
inside a classic component (non-scenical) that can have an image