Hi, I added a AuiNotebook as a center pane with stye wxAUI_NB_DEFAULT_STYLE, and there are many pages in this notebook. therefore, all pages contain "close" button. I can add/delete page into/from this notebook.
but I want to remove the 'close' button from the page, when there is only one page left in the notebook.
I do not know how to do it, pls help me, thank you !
Kirix Support Forums
There is at least one Page in a AuiNotebook
2 posts
• Page 1 of 1
- fancyivan
- Registered User
- Posts: 1
- Joined: Thu Oct 14, 2010 9:08 pm
Re: There is at least one Page in a AuiNotebook
I did not test it but you should be able to connect the event EVT_AUINOTEBOOK_PAGE_CLOSE on a method which changes the wxAuiNotebook style without any wxAUI_NB_CLOSE_XX when the number of page is equal to one.
- R.U.10
- Registered User
- Posts: 30
- Joined: Mon May 21, 2007 9:26 am
2 posts
· Page 1 of 1
Return to wxAUI Questions, Thoughts & Feedback