Fix problems with GetSelection() documentation

Move wxListBox-specific part to wxListBox documentation, it doesn't
apply to the other controls, such as wxRadioBox.

Also improve the documentation of wxRadioBox::GetSelection() to mention
that it always returns a valid value.

Closes #18968.
This commit is contained in:
Vadim Zeitlin
2020-11-10 13:12:37 +01:00
parent 1cf7c47934
commit 7fe7ebd5e4
3 changed files with 19 additions and 4 deletions

View File

@@ -113,10 +113,6 @@ public:
@return The position of the current selection.
@remarks This method can be used with single selection list boxes only,
you should use wxListBox::GetSelections() for the list
boxes with wxLB_MULTIPLE style.
@see SetSelection(), GetStringSelection()
*/
virtual int GetSelection() const = 0;