Hi,
I was wondering if there was a way to intercept an "on page close" or something of the sort to prevent the user from being able to close the last tab?
Thanks,
Hai
Kirix Support Forums
Preventing last tab from closing
3 posts
• Page 1 of 1
- chaoticbob
- Registered User
- Posts: 3
- Joined: Fri Jul 06, 2007 12:48 pm
Re: Preventing last tab from closing
Hi there,
Try handling wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSE and call event.Veto() to let wxAuiNotebook know that you don't want the window to be closed.
Best,
Ben
Try handling wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSE and call event.Veto() to let wxAuiNotebook know that you don't want the window to be closed.
Best,
Ben
Ben Williams
Kirix Support Team
Kirix Support Team
-
Ben - Kirix Support Team
- Posts: 525
- Joined: Mon Dec 19, 2005 6:29 am
Re: Preventing last tab from closing
Thanks, Ben.
This worked out very well.
This worked out very well.
- chaoticbob
- Registered User
- Posts: 3
- Joined: Fri Jul 06, 2007 12:48 pm
3 posts
· Page 1 of 1
Return to wxAUI Questions, Thoughts & Feedback