more convenient API for wxGenericValidator + wxLB_SINGLE

For a single-selection wxListBox, using an int to transfer
data to/from wxGenericValidator is more convenient than
wxArrayInt.
This commit is contained in:
Bill Su 2023-12-12 20:58:40 -05:00
parent ed02e03585
commit cfc5bc6ff2
2 changed files with 57 additions and 0 deletions

View file

@ -21,6 +21,9 @@
For example, wxButton and wxTextCtrl transfer data to and from a
wxString variable; wxListBox uses a wxArrayInt; wxCheckBox uses a boolean.
@since 3.2.5
A wxLB_SINGLE wxListBox can also use an int.
For more information, please see @ref overview_validator.
@library{wxcore}