Add wxAuiToolBar::DestroyTool() and DestroyToolByIndex()
These new functions destroy the associated window too, unlike the existing DeleteTool() and DeleteByIndex(). Closes #16552.
This commit is contained in:
parent
95b1f7b7ea
commit
700eaff131
3 changed files with 48 additions and 2 deletions
|
|
@ -525,6 +525,12 @@ public:
|
|||
|
||||
void ClearTools() { Clear() ; }
|
||||
void Clear();
|
||||
|
||||
bool DestroyTool(int toolId);
|
||||
bool DestroyToolByIndex(int idx);
|
||||
|
||||
// Note that these methods do _not_ delete the associated control, if any.
|
||||
// Use DestroyTool() or DestroyToolByIndex() if this is wanted.
|
||||
bool DeleteTool(int toolId);
|
||||
bool DeleteByIndex(int toolId);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue