[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.

[Back] menu item RSS feed
Forum Index » tcMenu Arduinio library
Author Message
dsap4004


Joined: Apr 26, 2019
Messages: 21
Offline
The back menu item in sub menus currently takes me back to the top of the entire tree instead of the top of the parent sub menu. Is this something unique to my setup or is it a feature that doesn't exist yet?
davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
This is actually a bug that's is mainly already fixed in the next version, 1.3.1. I'd already fixed it in the display renderer while working on the extended ESP8266 support, but not got around to creating the issue for it yet. Just created now.

See https://github.com/davetcc/tcMenuLib/issues/15

Thanks,
Dave.
dsap4004


Joined: Apr 26, 2019
Messages: 21
Offline
Okay, just making sure I didn't screw something up. My screen space is limited on a 16x2 display so I changed the forward and back indicators in the library to little arrows. "?" "?"
davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
So in version 1.3.1 there will be a configurable limit of the number levels supported in the menu structure. This is because many places use a non-recursive way of handling menu items.

The default setup would allow up to 4 levels away from root. For example:

Settings
  +--- Sub Settings I
     +--Sub Sub Settings
         +-- Sub Sub Sub
               +--- Sub Sub Sub Sub


It will be easily re-defined by opening file
MenuIterator.h
and changing the value
MAX_MENU_DEPTH
to a new value (obviously at the expense of a little memory).
dsap4004


Joined: Apr 26, 2019
Messages: 21
Offline
I only use 2 layers at max if you don't count menu items so that will work perfectly.
davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
1.3.1 now has the ability to set the depth required - defaulting to 4.
 
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.