ArduinoMenu icon indicating copy to clipboard operation
ArduinoMenu copied to clipboard

Structure elements

Open Ulli2k opened this issue 5 years ago • 3 comments

Is it possible to add a header / structure elements? I want to have it look like

menu header
------
 >field
   submenu
   ....
------
menu footer

Ulli2k avatar Jul 12 '19 21:07 Ulli2k

yes, that's the role of this library, what board/mcu and IO are you using?

code examples here: https://github.com/neu-rah/ArduinoMenu/tree/master/examples

videos on main page with menu examples.

neu-rah avatar Jul 12 '19 21:07 neu-rah

I am using a ESP32. I already saw the examples. But I did not find å way to add headlines. Or å horizontal separation line.

I just want to customize the Look.

Ulli2k avatar Jul 13 '19 11:07 Ulli2k

ahh, ok you can limit the area of the menu on the output device, by changing the panel coordinates... trimming the right side of text might be disabled on some devices (like u8g2 displays) so, one has ro make sure text fits the space.

  • footer, some space left for footer (lines limit are always respected on all device) one has some area to free draw... we can coordinate that with the active menu, by using the events... as for the text source to figure on footer it can be either external or internal if we derive the existent menu objects to support an extra text

  • separators, we can use disabled options, they will however take a whole line.
    drawing graphics lines between the option seems complicated and not all devices support

a good principle to face this issues would be variable height options, current version uses only lines and work with device coordinates instead of text grids as the current menu version does

as a general principle things that are hardware specific or require some special capabilities are implemented as plugins, so that the base objects are supported by all devices including simple text output (monitor, console, printer).

developement discussions also here: https://gitter.im/ArduinoMenu/Lobby

thanks for the interest https://gitter.im/ArduinoMenu/Lobby

neu-rah avatar Jul 13 '19 12:07 neu-rah