Hi Dave,
Menuitems seem to have Name in Anymenuinfo, which is const.
In my usecase, the name of one some of the menuitems should be changeable by the user.
We have 5 or 6 drumpads, each drum should be configurable through a menu (or rather submenu).
The "drums" would be typically named after the sound they produce eg. "highTom" or "snare".
The user can change the sound each drumpad produces and he would expect
to see the name in the menu that leads to the config of that drumpad.
So i would like to change the name of that item.
I considered three ways:
1. runtimeitem: still stuck with const Anymenuinfo, or do i see that wrong ?
2. make Anymenuinfo NOT const, i have enough ram, but thats really deep into your code, allthough the constructor for submenuitem compiles without const, that has probably lots of unitended side effects.
3. create a sibling of the submenitem class with changeble Anymenuinfo, that seems to be not so big of an issue, most of the code would be inherited.
Allthough 3 is my favorite, would you mind giving me a hint ?
thanks in advance,
Regards,
bitz
|