Print Page | Close Window

CXTPTabControl:close all tabs

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3616
Printed Date: 09 November 2025 at 9:50pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPTabControl:close all tabs
Posted By: spelhatre
Subject: CXTPTabControl:close all tabs
Date Posted: 07 February 2006 at 10:45am
Hi,
With FindNavigateButton( xtpTabNavigateButtonClose) I can use close button (simple cross) to manage closing on 1 tab.
But is there a way to manage closing of all tabs ( with another button with a double cross for example) ?
thanks



Replies:
Posted By: Oleg
Date Posted: 07 February 2006 at 1:58pm

Yes, you can

1. ovreride CXTPTabManagerNavigateButton

2. override its DrawEntry to draw double cross

3. override its OnExecute adn call m_pManager->DeleteAllItems();

 

add new button with

.GetNavigateButtons().Add(new CNavigateButtonCloseAll(this, xtpTabNavigateButtonAlways));



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: spelhatre
Date Posted: 08 February 2006 at 4:55am
Thanks Oleg, it works fine.
Perhaps it would be nice to add in a next release the "close all" button.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net