| 1845 | // --------------------------------------------------------------------- |
| 1846 | |
| 1847 | void MyFrame::ClearAllPatterns() |
| 1848 | { |
| 1849 | while (numpatterns > 0) { |
| 1850 | patternSubMenu->Delete( patternSubMenu->FindItemByPosition(0) ); |
| 1851 | numpatterns--; |
| 1852 | } |
| 1853 | wxMenuBar* mbar = GetMenuBar(); |
| 1854 | if (mbar) mbar->Enable(ID::OpenRecent, false); |
| 1855 | } |
| 1856 | |
| 1857 | // --------------------------------------------------------------------- |
| 1858 |