Make the selected item visible, to match behaviour on other platforms
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -191,6 +191,9 @@ void wxListBox::DoSetSelection(int n, bool select)
|
|||||||
m_blockEvents = false;
|
m_blockEvents = false;
|
||||||
|
|
||||||
UpdateOldSelections();
|
UpdateOldSelections();
|
||||||
|
|
||||||
|
if (select)
|
||||||
|
EnsureVisible(n);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxListBox::IsSelected(int n) const
|
bool wxListBox::IsSelected(int n) const
|
||||||
|
Reference in New Issue
Block a user