Fix Wrong method name in wxAddRemoveCtrl documentation

Use the correct CanRemove() instead of the non-existent CanRename().

Closes https://github.com/wxWidgets/wxWidgets/pull/747
This commit is contained in:
Xaviou
2018-02-25 18:39:59 +01:00
committed by Vadim Zeitlin
parent 3d427a1af1
commit 813fdca24c

View File

@@ -121,7 +121,7 @@ public:
virtual wxWindow* GetItemsCtrl() const { return m_lbox; }
virtual bool CanAdd() const { return true; }
virtual bool CanRename() const { return m_lbox->GetSelection() != wxNOT_FOUND; }
virtual bool CanRemove() const { return m_lbox->GetSelection() != wxNOT_FOUND; }
virtual void OnAdd() { ... get the new item from user and add it ... }
virtual void OnRemove() { m_lbox->Delete(m_lbox->GetSelection()); }