Closed grandlizardofthecanyons closed 4 years ago
Hi!
Second option is disabled programmatically and by index (not by definition), therefor no matter what option is on that place it will be disabled.
Its a demo of enabling / disabling options, cause by this line (or similar) on setup
function
mainMenu[1].enabled=disabledStatus;
you're welcome.
thank you!
I took several of the examples and merged them to test with two keypads (one with up down and select, and the other as a numeric keypad) and a 20x4 LCD. I'm so glad you had examples to work with that can get me as far as this does, but I am having an issue that is quirky and I don't understand why it behaves this way.
I'm using this code with each object defined exactly as in your examples:
When this runs, Op1 is selectable (with the icon ">") but when I navigate to Op2 it seems disabled (with the icon "-"). As a test, I tried switching their position (so Op2 is top and Op1 is the second item in the menu) in which case Op1 (the second item in the menu) is disabled and Op2 (the first item in the menu) is now enabled. This behavior is unexpected, so I'm wondering if this is a bug or if there is something simple that I'm missing.
Please advise... Thank you.