Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Structure elements #249

Open
Ulli2k opened this issue Jul 12, 2019 · 3 comments
Open

Structure elements #249

Ulli2k opened this issue Jul 12, 2019 · 3 comments

Comments

@Ulli2k
Copy link

Ulli2k commented Jul 12, 2019

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

menu header
------
 >field
   submenu
   ....
------
menu footer
@neu-rah
Copy link
Owner

neu-rah commented Jul 12, 2019

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.

@Ulli2k
Copy link
Author

Ulli2k commented Jul 13, 2019

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.

@neu-rah
Copy link
Owner

neu-rah commented Jul 13, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants