How to create a model dialog with lvgl?

In addition, I hope that after the messagebox pops up, it waits for the user to make a choice before executing the following logic.
Not the way it is now…