[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 

[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: 362
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: 362
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: 362
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