Closed sokolbiba closed 5 years ago
Another thing that I forgot to mention to above is that every time I create a new window I save its pointer to windows[windows_depth]
array. I do not know if there is a function that will make the render if I give as parameter the pointer to the window?
Hi,
Menu
Do you have a full keyboard or just a few buttons?
Anyway, what about lv_list
? https://littlevgl.com/object-types/list-lv_list
Window order If you create a new window, it will above the others. So always the new window will be visible in the foreground. If you close it the previous window will be shown.
HI,
Sorry for late response.
I have an encoder and I am trying to navigate through the menu. Seems that https://littlevgl.com/object-types/list-lv_list could make a good combination between lv_window
and lv_list
.
I am trying to test the line_meter example. Seems that
style_lmeter1.body.padding.hor=40;
does not change the line length. I changed it to 80 then down to 20 but the line length keeps the same length.
Any ide what am I missing ?
Regards
Hi,
I tested the lmeter
with this code on the master
branch:
static lv_style_t ls;
lv_style_copy(&ls, &lv_style_pretty_color);
ls.body.padding.hor = 40;
lv_obj_t * lmeter = lv_lmeter_create(lv_scr_act(), NULL);
lv_lmeter_set_style(lmeter, &ls);
and got this:
What is the result of the above code for you?
In fact I am using the dev-5.2 branch
. I did not tested it with master branch
With this code it also works for me in dev-5.2
I tried it on the master branch
and works fine. Do not know why is not working with the dev 5.2
.
Have you tried this code in dev-5.2
too?
Yeah I have tried it. Have a look at the image. That happened only by switching from master
to dev 5.2
Here is another difference between the way that both libraries draw the line of width 4.
The master branch
is cutting the lines in the outer side of the "circle" at some strange angle.
In the dev 5.2
this seems to be better. All lines in the outer side of the "circle" finish in a beauty way.
Hope can distinguish the difference. :)
Yes, I see the difference. I took me weeks to implement this line drawing algorithm which has perpendicular ending and anti-aliasing and supports opacity too :)
However, I don't know what can be the problem as it works for me.
To debug it I suggest to check lv_lmeter_design()
in lv_lmeter.c
. This line takes into account the padding.hor
:
lv_coord_t r_in = r_out - style->body.padding.hor;
As there was no activity here for a while I close it to keep the issues clear.
If you have remarks about this topic feel free to comment here and reopen the issue.
Hi again, I am trying to create a menu like structure . Until now I have been using windows and groups. But it does not make to much sense to me to create multiple windows. It should be smth much more dynamically proccess. Below is the function that will create me a "MAIN MENU" window.
And that will give a scrollable page like in the image: What I have done so far is that I can enter in every menu I want using function
create_window(char * title)
which is called in the
my_click_action
Right now I am not able to go back to the previous window I had. Can you suggest a better way to handle that.