[Logo] TCC discussion forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Top Downloads] Top Downloads   [Groups] Back to home page 
[Register] Register /  [Login] Login 


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.

Navigating to submenu rather than submenu item RSS feed
Forum Index » tcMenu Arduinio library
Author Message
Solapse


Joined: Mar 11, 2022
Messages: 2
Offline
Hi,

I'm using the info here: https://www.thecoderscorner.com/products/arduino-libraries/tc-menu/menumanager-and-iteration/

specifically: navigateToMenu(theNewItem, possibleActive = nullptr, customMenu = false);

My use case is to move a potentiometer on the front panel and it show you the value change, and related other parameters - some of which are also bound to potentiometers, others which are "optional" and are controlled via the encoder. So far, so good.

When using the navigateToMenu, it takes me directly to the parameter - this works as intended of course.

Is there a way to be taken to the submenu as a whole i.e. not a menuitem but show the menu that the menuitem contains? Let's say I have MenuL1 -> MenuL2 -> Parameter[x] - I'd like to go to the menu that shows all the Parameters with the title bar, rather than the Parameter itself. The reason this is a problem is that a) if the user wanted to navigate to a parameter "before" this one in the submenu, it isn't selectable and b) there's no title so parameter names don't get context by its menu.

Thanks!
Solapse


Joined: Mar 11, 2022
Messages: 2
Offline
Got it - needed to find the parent, nav to that, and use "onMenuSelect".
davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
Sorry for the delay in responding.

Yes, you're right there's a bit of missing documentation here. The nagivate to menu must be given the first item in the menu to be displayed. I'll update the documentation later, but I guess it should be

menuMgr.navigateToMenu(subToNavigateTo.getChild() ...)
 
Forum Index » tcMenu Arduinio library
Go to:   
Mobile view
Powered by JForum 2.7.0 © 2020 JForum Team • Maintained by Andowson Chang and Ulf Dittmer

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.

Our privacy policy applies to all pages on our site

Should you need further guidance on how to proceed: External link for information about cookie management.