This forum is read only and new users cannot register, please ask all new questions either using GitHub discussions, or in Arduino forum tagging @davetcc.
Yes, I would like the ability to override the variable name used for the menu.
I would like to override the ID also. If the ID currently is used for a linked list, the so be it but add a user ID that can be changed after the initial menu item definition.
Can you be more explicit about using "MenuItem * getMenuItemById (int id)" ?
By trial and error I coded this
MenuItem * xxx;
xxx = getMenuItemById (20); // ID 20 is a plain text data entry in a multi-item menu
And it compiled.
But what now to get the actual data and/or set it? I can't even figure out (or find in the documentation) the text object data name in the what ever the type of object it's in.
If there was just one complete example I could figure it out.
Sorry for the rant. I'm sure the documentation is instantly understandable by people that use Class and Object and other C++ / OOPS constructs every day.
But I don't even though I have used plain C and a dozens of other languages for 50 years.
and then get the value when the item is being edited will not work for me as the menu structure will change as the program is developed. And thus the callback name will change. Is there any plan to add a field for a users set a callback name vs the implicit menu text?
I would like to use the id of a menu item to set it's value upon program startup and get it's value after editing.
I cannot find any reference to use "id" to get / set a value in my main program. How is this done?
Unfortunately, if there are any Arduino Example programs, I can't find them.
This site uses cookies to analyse traffic, serve ads by Google AdSense (non-personalized in EEA/UK),
and to record consent. We also embed Twitter, Youtube and Disqus content on some pages, these companies
have their own privacy policies.