Merge branch 'vlistbox-current-accessors' of https://github.com/wsu-cb/wxWidgets

wxVListBox: add GetCurrent()/SetCurrent() accessors.

See #24204.
This commit is contained in:
Vadim Zeitlin 2024-01-22 21:40:40 +01:00
commit 1b4dfc292a
9 changed files with 32 additions and 14 deletions

View file

@ -183,6 +183,23 @@ public:
*/
bool IsCurrent(size_t item) const;
/**
Get the current item or @c wxNOT_FOUND if there is no
current item.
@since 3.3.0
*/
int GetCurrent() const;
/**
Set the specified item as the current item, if it is wxNOT_FOUND
the current item is unset. The current item will be automatically
scrolled into view if it isn't currently visible.
@since 3.3.0
*/
void SetCurrent(int current);
/**
Returns @true if this item is selected, @false otherwise.
*/