Kirix Support Forums

There is at least one Page in a AuiNotebook

Please post all general questions, comments, bug reports, and any other wxAUI feedback here.

There is at least one Page in a AuiNotebook

Postby fancyivan on Thu Oct 14, 2010 9:23 pm

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 !
fancyivan
Registered User
 
Posts: 1
Joined: Thu Oct 14, 2010 9:08 pm

Re: There is at least one Page in a AuiNotebook

Postby R.U.10 on Thu Oct 28, 2010 9:56 am

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

Return to wxAUI Questions, Thoughts & Feedback