![]() |
CXTPTabControl:close all tabs |
Post Reply
|
| Author | |
spelhatre
Newbie
Joined: 09 January 2006 Status: Offline Points: 15 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTPTabControl:close all tabsPosted: 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 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
spelhatre
Newbie
Joined: 09 January 2006 Status: Offline Points: 15 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |