What is the API for setting modal OBJ?

Hi @guoweilkd,

There is no specific API for this you need to create a full screen size transparent container to absorb the clicks, then draw your ‘modal’ object on it. please take a look at the docs here there is a code sample for a message box to get you started. If you need any further assistance don’t hesitate to ask.
Personally I usually set the opacity of the container to about 30% and set the colour to LV_COLOR_SILVER to slightly grey out the screen behind.

I hope that helps.

Kind Regards,

Pete

1 Like