How to use lv_page_set_edge_flash

Dear Lvgl-Community,
I am newbie with LVGL, but I would like to use this brilliant library for GUIs on MCUs.
I managed to build and run the samples and simulator, and now I am learning the library.
At this moment I stuck with accessing objects’ parts on lv_tabview as an example.

Description

How can I add, to say, property ‘edge flash’ to tabview?
I will highly appreciate the code sample.

What MCU/Processor/Board and compiler are you using?

STM32F769-DISCO

What do you want to achieve?

Learn lvgl as deep as possible

What have you tried so far?

I tried
lv_obj_t *pg = lv_page_get_scrllable(tabview);
lv_page_set_edge_flash(pg, true);
but it hangs the MCU

Code to reproduce

I used lv_ex_tabview_1 example

The code block(s) should be formatted like:

/*You code here*/

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.

Hi @igorko,

You should just be able to set it directly for the tab like this:

	    lv_page_set_edge_flash(tab1, true);

Hope that helps you out.

Kind Regards,

Pete

1 Like