THEME AND FONT
Dependencies: TS_DISCO_F746NG mbed LCD_DISCO_F746NG BSP_DISCO_F746NG lvgl_RB FastPWM millis
Diff: main.cpp
- Revision:
- 2:0ded70ebbc36
- Parent:
- 1:404ee28a0b60
- Child:
- 3:78125a86a357
--- a/main.cpp Fri Jan 17 06:03:24 2020 +0000 +++ b/main.cpp Fri Jan 17 06:10:21 2020 +0000 @@ -646,8 +646,8 @@ SousMenu = NULL; } //GABOR: How to test if the object "SousMenu" already exist? I Think it will be a better way than i did it.(SET/RESET with a Bit) - //ROMAIN: You can set SousMenu to NULL when deleted. WHen created it will be not NULL. So SousMenu == NULL will indicate that if it's deleted. See my modifications //Something like: if(GetObjExist(SousMenu)==1){lv_obj_del(SousMenu);} + //ROMAIN: You can set SousMenu to NULL when deleted. When created it will be not NULL. So SousMenu == NULL will indicate that if it's deleted. See my modifications /*Create a list*/ SousMenu = lv_list_create(lv_scr_act(), NULL); @@ -660,6 +660,7 @@ // Style_BPSM.body.padding.bottom = LV_DPI / 40; // GABOR: How to change the height of button in a list ? // ROMAIN: You need to modify the paddings. See here: https://docs.littlevgl.com/en/html/object-types/list.html#style-usage + // Your intention with looked good you just need to apply it with lv_btn_Set_style(SM101, LV_BRN_STYLE_REL, &Style_BPSM); //SOUS MENU 100 if (Num==100){ @@ -967,8 +968,8 @@ //lv_label_set_text(label, "Annuler"); //GABOR: Multiligual : see the function "message" - //ROMAIN: lvgl has lv_i18n modul to so internationalization: https://github.com/littlevgl/lv_i18n - // - It's a script which autmatically extracts the strings to translate from you code + //ROMAIN: lvgl has lv_i18n module for internationalization: https://github.com/littlevgl/lv_i18n + // - It's a script which automatically extracts the strings to translate from you code // - However to run the script you need the code offline // - An other option is to manually create the internationalization file // - I've added lv_i18n.c/h as a reference