Replies: 5 comments 2 replies
-
define what a menu is. Is it a drop down menu? or a modal type dialog that opens with button type choices in it? Need to know the type of menu you are looking to provide. Maybe drawing it out in a paint type program to show me what the goal is. |
Beta Was this translation helpful? Give feedback.
-
Most of them are |
Beta Was this translation helpful? Give feedback.
-
I don't know if sliding menus would work for me. I might could try
something with `lv.obj`s though.
…On Sat, May 31, 2025 at 7:42 PM Kevin Schlosser ***@***.***> wrote:
Personally I am a fan of using sliding menus to access different controls
or settings...
Take a look here...
https://www.youtube.com/watch?v=35j4p78OJAs
I use that video as an example because it is running on an ESP32 using
MicroPython and LVGL. The reason why I like that kind of a control is
because it keeps the Main GUI active it just slides it out of view and
bring up the other controls. No creating or destroying UI elements which
can lead to what is called memory fragmentation where you end up with small
open areas that may add up to a lot of ram but you end up running out of
memory because the areas are not contiguous.
The biggest tip I can give is think of lv.obj as a container. You can
make that container completely transparent to both input and also visually
and you can place other UI elements into that container to create a
grouping of UI elements that you might be able to use in multiple places.
In that video when I slide the menu up and you see the slider bars you can
see that the slider bars are grouped together with some labels and also
some buttons. Those act as a single component and they get reused. When one
slides out of view it gets recycled as the next one that is coming into
view.
—
Reply to this email directly, view it on GitHub
<#369 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BDWNJARYL4WV4EPFOXDAJDL3BJSALAVCNFSM6AAAAAB6KD3ZNKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGMZTGIYDQMY>
.
You are receiving this because you authored the thread.Message ID:
<lvgl-micropython/lvgl_micropython/repo-discussions/369/comments/13332083@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
I can't figure out anything with |
Beta Was this translation helpful? Give feedback.
-
I think I figured it out. Thanks for this great project! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am making a program that has several buttons leading to list menus leading to more menus and buttons on and on… What is the best way to do this?
Beta Was this translation helpful? Give feedback.
All reactions