Wrong method name in wxAddRemoveCtrl documentation sample code
This commit is contained in:
parent
3d427a1af1
commit
b1db1bc0bb
1 changed files with 1 additions and 1 deletions
|
|
@ -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()); }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue