Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(msgbox): add function to get selected button index #2538

Merged
merged 1 commit into from Sep 9, 2021

Conversation

Johennes
Copy link
Contributor

@Johennes Johennes commented Sep 8, 2021

Description of the feature or fix

This adds a new function lv_msgbox_get_active_btn that works analogously to lv_msgbox_get_active_btn_text but returns the button index instead of its text.

The index is more convenient for comparison in localized applications as it doesn't depend on the current language.

Checkpoints

This adds a new function lv_msgbox_get_active_btn that works analogously
to lv_msgbox_get_active_btn_text but returns the button index instead of
its text.

The index is more convenient for comparison in localized applications as
it doesn't depend on the current language.
@kisvegabor
Copy link
Member

Looks good thank you!

@kisvegabor kisvegabor merged commit 52dac2b into lvgl:master Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants